GUsb.Interface¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GUsb.Interface(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- get_alternate()¶
- Returns:
alt setting, typically zero.
- Return type:
Gets the alternate setting for the interface.
New in version 0.2.8.
- get_class()¶
- Returns:
a interface class number, e.g. 0x09 is a USB hub.
- Return type:
Gets the interface class, typically a #GUsbInterfaceClassCode.
New in version 0.2.8.
- get_endpoints()¶
- Returns:
an array of endpoints, or
None
on failure.- Return type:
Gets interface endpoints.
New in version 0.3.3.
- get_extra()¶
- Returns:
a
GLib.Bytes
, orNone
for failure- Return type:
Gets any extra data from the interface.
New in version 0.2.8.
- get_index()¶
- Returns:
a string descriptor index.
- Return type:
Gets the index for the string descriptor.
New in version 0.2.8.
- get_kind()¶
- Returns:
The 8-bit address
- Return type:
Gets the type of interface.
New in version 0.2.8.
- get_length()¶
- Returns:
The 8-bit bus number
- Return type:
Gets the USB bus number for the interface.
New in version 0.2.8.
- get_number()¶
- Returns:
The interface ID
- Return type:
Gets the interface number.
New in version 0.2.8.
- get_protocol()¶
- Returns:
a interface protocol number.
- Return type:
Gets the interface protocol qualified by the class and subclass numbers. See
GUsb.Interface.get_class
() andGUsb.Interface.get_subclass
().New in version 0.2.8.
- get_subclass()¶
- Returns:
a interface subclass number.
- Return type:
Gets the interface subclass qualified by the class number. See
GUsb.Interface.get_class
().New in version 0.2.8.