Enums

Details

class GUsb.ContextError(value)

Bases: GLib.Enum

CONTEXT_ERROR_INTERNAL = 0
class GUsb.DeviceClassCode(value)

Bases: GLib.Enum

The USB device class.

INTERFACE_DESC = 0
AUDIO = 1
CDC_DATA = 10
SMART_CARD = 11
CONTENT_SECURITY = 13
VIDEO = 14
PERSONAL_HEALTHCARE = 15
AUDIO_VIDEO = 16
BILLBOARD = 17
COMMUNICATIONS = 2
DIAGNOSTIC = 220
WIRELESS_CONTROLLER = 224
MISCELLANEOUS = 239
APPLICATION_SPECIFIC = 254
VENDOR_SPECIFIC = 255
HID = 3
PHYSICAL = 5
IMAGE = 6
PRINTER = 7
MASS_STORAGE = 8
HUB = 9
class GUsb.DeviceDirection(value)

Bases: GLib.Enum

The message direction.

DEVICE_TO_HOST = 0
HOST_TO_DEVICE = 1
class GUsb.DeviceError(value)

Bases: GLib.Enum

The error code.

INTERNAL = 0

Internal error

IO = 1

IO error

BUSY = 10

Device was busy

TIMED_OUT = 2

Operation timed out

NOT_SUPPORTED = 3

Operation not supported

NO_DEVICE = 4

No device found

NOT_OPEN = 5

Device is not open

ALREADY_OPEN = 6

Device is already open

CANCELLED = 7

Operation was cancelled

FAILED = 8

Operation failed

PERMISSION_DENIED = 9

Permission denied

class GUsb.DeviceLangid(value)

Bases: GLib.Enum

The USB language ID.

INVALID = 0
ENGLISH_UNITED_STATES = 1033
class GUsb.DeviceRecipient(value)

Bases: GLib.Enum

The message recipient.

DEVICE = 0
INTERFACE = 1
ENDPOINT = 2
OTHER = 3
class GUsb.DeviceRequestType(value)

Bases: GLib.Enum

The message request type.

STANDARD = 0
CLASS = 1
VENDOR = 2
RESERVED = 3
class GUsb.SourceError(value)

Bases: GLib.Enum

The error code.

SOURCE_ERROR_INTERNAL = 0