Struct SYN_USB_HostClassDriver¶
ClassList > SYN_USB_HostClassDriver
#include <syn_usb_host.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint8_t | class_code |
| void * | ctx |
| void(* | disconnected Called when the device is detached. |
| bool | matched |
| SYN_Status(* | probe Called when a matching interface is found during enumeration. |
| void(* | process Called each tick while in READY state for class-specific polling. |
| uint8_t | protocol_code |
| uint8_t | subclass_code |
Detailed Description¶
Host class driver registration entry
Public Attributes Documentation¶
variable class_code¶
bInterfaceClass to match (0xFF = any)
variable ctx¶
Driver context pointer
variable disconnected¶
Called when the device is detached.
Parameters:
ctxDriver context.
variable matched¶
True if this driver matched during probe
variable probe¶
Called when a matching interface is found during enumeration.
SYN_Status(* SYN_USB_HostClassDriver::probe) (void *ctx, uint8_t dev_addr, const uint8_t *iface_desc, uint16_t len);
Parameters:
ctxDriver context.dev_addrDevice bus address.iface_descPointer to interface descriptor bytes.lenLength of interface descriptor + subordinate descriptors.
Returns:
SYN_OK to claim the interface.
variable process¶
Called each tick while in READY state for class-specific polling.
Parameters:
ctxDriver context.
variable protocol_code¶
bInterfaceProtocol to match (0xFF = any)
variable subclass_code¶
bInterfaceSubClass to match (0xFF = any)
The documentation for this class was generated from the following file src/syntropic/drivers/syn_usb_host.h