GUsb.Interface

g GObject.Object GObject.Object GUsb.Interface GUsb.Interface GObject.Object->GUsb.Interface

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_alternate ()

get_class ()

get_endpoints ()

get_extra ()

get_index ()

get_kind ()

get_length ()

get_number ()

get_protocol ()

get_subclass ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class GUsb.Interface(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GUsb.InterfaceClass

get_alternate()
Returns:

alt setting, typically zero.

Return type:

int

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:

int

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:

[GUsb.Endpoint]

Gets interface endpoints.

New in version 0.3.3.

get_extra()
Returns:

a GLib.Bytes, or None for failure

Return type:

GLib.Bytes

Gets any extra data from the interface.

New in version 0.2.8.

get_index()
Returns:

a string descriptor index.

Return type:

int

Gets the index for the string descriptor.

New in version 0.2.8.

get_kind()
Returns:

The 8-bit address

Return type:

int

Gets the type of interface.

New in version 0.2.8.

get_length()
Returns:

The 8-bit bus number

Return type:

int

Gets the USB bus number for the interface.

New in version 0.2.8.

get_number()
Returns:

The interface ID

Return type:

int

Gets the interface number.

New in version 0.2.8.

get_protocol()
Returns:

a interface protocol number.

Return type:

int

Gets the interface protocol qualified by the class and subclass numbers. See GUsb.Interface.get_class() and GUsb.Interface.get_subclass().

New in version 0.2.8.

get_subclass()
Returns:

a interface subclass number.

Return type:

int

Gets the interface subclass qualified by the class number. See GUsb.Interface.get_class().

New in version 0.2.8.