usb

package
v0.0.0-...-8607caf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindUSBDrivePathOnDut

func FindUSBDrivePathOnDut(ctx context.Context, run components.Runner, s components.Servod) (string, error)

FindUSBDrivePathOnDut finds and returns the path of USB drive on a DUT.

func IsSmartUSBDrive

func IsSmartUSBDrive(ctx context.Context, run components.Runner, usbPath string) (bool, error)

IsSmartUSBDrive checks if USB is smart device. TODO: replace with better logic if possible.

func RunCheckOnHost

func RunCheckOnHost(ctx context.Context, run components.Runner, usbPath string, isSmartDevice bool, timeout time.Duration) (tlw.HardwareState, error)

RunCheckOnHost generates new state for USB-drive by running check on DUT.

func UsbReset

func UsbReset(ctx context.Context, run components.Runner, log logger.Logger, usbId string) error

UsbReset resets USB devices. usbId is one of the following - PPPP:VVVV - product and vendor id - BBB/DDD - bus and device number - "Product" - product name

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL