Lines Matching refs:Servo
17 from autotest_lib.server.cros.servo import firmware_programmer
70 def __init__(self, servo):
73 @param servo Servo object providing the underlying `set` and `get`
77 self._servo = servo
137 def __init__(self, servo):
138 self._servo = servo
168 # The UART stream may contain non-printable characters, and servo
201 class Servo(object):
203 """Manages control of a Servo board.
205 Servo is a board developed by hardware group to aide in the debug and
206 control of various partner devices. Servo's features include the simulation
208 class manages setting up and communicating with a servo demon (servod)
209 process. It provides both high-level functions for common servo tasks and
250 # Time to wait before timing out on servo initialization.
255 """Sets up the servo communication infrastructure.
259 @param servo_serial: Serial number of the servo board.
262 # We should move servo_host object out of servo object
275 """Returns the serial number of the servo board."""
280 """Return the power state controller for this Servo.
292 This sets various servo signals back to default values
297 Rationale: Basic initialization of servo sets the lid open,
316 logging.debug('Servo initialized, version is %s',
367 time.sleep(Servo.SLEEP_DELAY)
532 time.sleep(Servo.BOOT_DELAY)
534 time.sleep(Servo.BOOT_DELAY)
603 retry_count = Servo.GET_RETRY_MAX
608 time.sleep(Servo.SHORT_DELAY)
611 'Servo failed to set %s to %s' % (gpio_name, gpio_value)
664 # TODO(waihong) It may fail if multiple servo's are connected to the same
670 """Probe the USB disk device plugged-in the servo from the host side.
678 # Set up Servo's usb mux.
685 """Install an image to the USB key plugged into the servo.
687 This method may copy any image to the servo USB key including a
705 # Set up Servo's usb mux.
712 'Please take a look at Servo Logs.')
718 'Please take a look at Servo Logs.')
731 onto a DUT through the use of a USB stick that is mounted on a servo
745 """Copy image to the servo host.
748 located on the host to which the servo device is connected. Sometimes
749 servo is controlled by a remote host, in this case the image needs to
769 logging.info('Will execute on servo host: %s', command)
792 """Get the version of the servo, e.g., servo_v2 or servo_v3.
794 @return: The version of the servo.
813 # Both servo v3 and v4 use the same programming methods so just leverage
814 # ProgrammerV3 for servo v4 as well.
821 'No firmware programmer for servo version: %s' %
906 time.sleep(Servo.BOOT_DELAY)
939 This function switches the servo multiplexer to provide electrical
1000 """Set the power role of servo v4, either 'src' or 'snk'.
1002 It does nothing if not a servo v4.
1004 @param role: Power role for DUT port on servo v4, either 'src' or 'snk'.
1014 logging.debug('Not a servo v4, unable to set role to %s.', role)
1033 """Close the servo object."""