Crate usbfs

Source

Structs§

DriverName
Represents a USBFS driver name.
TransferInfo
Represents USBFS transfer information.
Urb
Represents a URB record on Linux.
UsbfsConnectInfo
Represents USBFS connection information.
UsbfsCtrlTransfer
Represents a USBFS Control transfer
UsbfsDisconnectClaim
Represents USBFS disconnect claim.
UsbfsGetDriver
Represents an argument to get a USBFS driver from an ioctl.
UsbfsIoctl
Represents USBFS ioctl information.
UsbfsIsoPacketDesc
Represents a USBFS Isochronous packet description.
UsbfsSetInterface
Represents a USBFS interface setting.
UsbfsStreams
Represents USBFS stream information.

Enums§

Error
Error type for the USBFS crate.
UsbfsCap
Represents USBFS capabilities.
UsbfsDisconnectClaimFlag
Represents USBFS disconnect claim flags.
UsbfsSpeed
Represents USBFS transfer speeds.

Constants§

MAX_BULK_BUFFER_LENGTH
MAX_CTRL_BUFFER_LENGTH
MAX_ISO_PACKETS_PER_URB
SYSFS_DEVICE_PATH
SYSFS_MOUNT_PATH
USBFS_MAX_DRIVER_NAME
USBFS_MAX_DRIVER_NAME_FFI

Traits§

UrbUserContext
Convenience alias for types used as a usercontext argument in Urb.
UsbfsIoctlData
Convenience trait for passing data arguments to USBFS IOCTL drivers.

Functions§

usbfs_alloc_streams
USBFS Alloc Streams
usbfs_claim_interface
USBFS Claim Interface
usbfs_clear_halt
USBFS Clear Halt
usbfs_connect
USBFS Connect
usbfs_connect_info
USBFS Connect Info
usbfs_control
USBFS Control transfer.
usbfs_discard_urb
USBFS Discard URB
usbfs_disconnect
USBFS Disconnect
usbfs_disconnect_claim
USBFS Disconnect Claim
usbfs_drop_privileges
USBFS Drop Privileges
usbfs_free_streams
USBFS Free Streams
usbfs_get_capabilities
USBFS Get Capabilities
usbfs_get_driver
USBFS Get Driver
usbfs_get_speed
USBFS Get Speed
usbfs_ioctl
USBFS IOCTL
usbfs_reap_urb_ndelay
USBFS Reap URB N_Delay
usbfs_release_interface
USBFS Release Interface
usbfs_reset
USBFS Reset
usbfs_set_configuration
USBFS Set Configuration
usbfs_set_interface
USBFS Set Interface
usbfs_submit_urb
USBFS Submit URB

Type Aliases§

Result
Convenience alias for the library Result type.