Home | History | Annotate | Download | only in servo

Lines Matching refs:Servo

13 from autotest_lib.server.cros.servo import firmware_programmer
46 def __init__(self, servo):
49 @param servo Servo object providing the underlying `set` and `get`
53 self._servo = servo
111 class Servo(object):
113 """Manages control of a Servo board.
115 Servo is a board developed by hardware group to aide in the debug and
116 control of various partner devices. Servo's features include the simulation
118 class manages setting up and communicating with a servo demon (servod)
119 process. It provides both high-level functions for common servo tasks and
160 # Time to wait before timing out on servo initialization.
165 """Sets up the servo communication infrastructure.
169 @param servo_serial: Serial number of the servo board.
172 # We should move servo_host object out of servo object
184 """Returns the serial number of the servo board."""
189 """Return the power state controller for this Servo.
201 This sets various servo signals back to default values
206 Rationale: Basic initialization of servo sets the lid open,
224 logging.debug('Servo initialized, version is %s',
275 time.sleep(Servo.SLEEP_DELAY)
440 time.sleep(Servo.BOOT_DELAY)
442 time.sleep(Servo.BOOT_DELAY)
494 retry_count = Servo.GET_RETRY_MAX
499 time.sleep(Servo.SHORT_DELAY)
502 'Servo failed to set %s to %s' % (gpio_name, gpio_value)
555 # TODO(waihong) It may fail if multiple servo's are connected to the same
561 """Probe the USB disk device plugged-in the servo from the host side.
574 """Install an image to the USB key plugged into the servo.
576 This method may copy any image to the servo USB key including a
594 # Set up Servo's usb mux.
601 'Please take a look at Servo Logs.')
607 'Please take a look at Servo Logs.')
615 onto a DUT through the use of a USB stick that is mounted on a servo
630 """Copy image to the servo host.
633 located on the host to which the servo device is connected. Sometimes
634 servo is controlled by a remote host, in this case the image needs to
654 logging.info('Will execute on servo host: %s', command)
677 """Get the version of the servo, e.g., servo_v2 or servo_v3.
679 @return: The version of the servo.
698 # Both servo v3 and v4 use the same programming methods so just leverage
699 # ProgrammerV3 for servo v4 as well.
706 'No firmware programmer for servo version: %s' %
774 This function switches the servo multiplexer to provide electrical