Skip to content

Struct SYN_USB_HostClassDriver

ClassList > SYN_USB_HostClassDriver

More...

  • #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

uint8_t SYN_USB_HostClassDriver::class_code;

bInterfaceClass to match (0xFF = any)


variable ctx

void* SYN_USB_HostClassDriver::ctx;

Driver context pointer


variable disconnected

Called when the device is detached.

void(* SYN_USB_HostClassDriver::disconnected) (void *ctx);

Parameters:

  • ctx Driver context.

variable matched

bool SYN_USB_HostClassDriver::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:

  • ctx Driver context.
  • dev_addr Device bus address.
  • iface_desc Pointer to interface descriptor bytes.
  • len Length 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.

void(* SYN_USB_HostClassDriver::process) (void *ctx);

Parameters:

  • ctx Driver context.

variable protocol_code

uint8_t SYN_USB_HostClassDriver::protocol_code;

bInterfaceProtocol to match (0xFF = any)


variable subclass_code

uint8_t SYN_USB_HostClassDriver::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