Skip to content

Struct SYN_USB_Device

ClassList > SYN_USB_Device

More...

  • #include <syn_usb.h>

Public Attributes

Type Name
uint8_t class_count
SYN_USB_ClassDriver classes
uint8_t config_buf
uint16_t config_buf_used
const uint8_t * config_desc
uint16_t config_desc_len
uint8_t config_value
uint8_t dev_address
const uint8_t * device_desc
uint8_t ep0_buf
bool raw_config_override
uint8_t state
uint8_t string_desc_count
const uint8_t * string_descs

Detailed Description

USB Device Instance Context

Public Attributes Documentation

variable class_count

uint8_t SYN_USB_Device::class_count;

Number of registered class drivers


variable classes

SYN_USB_ClassDriver SYN_USB_Device::classes[SYN_USB_MAX_CLASSES];

Class driver registry array


variable config_buf

uint8_t SYN_USB_Device::config_buf[SYN_USB_MAX_CONFIG_DESC];

Auto-assembled config descriptor buffer


variable config_buf_used

uint16_t SYN_USB_Device::config_buf_used;

Length of auto-assembled config descriptor


variable config_desc

const uint8_t* SYN_USB_Device::config_desc;

Active configuration descriptor pointer


variable config_desc_len

uint16_t SYN_USB_Device::config_desc_len;

Configuration descriptor length


variable config_value

uint8_t SYN_USB_Device::config_value;

Active configuration value


variable dev_address

uint8_t SYN_USB_Device::dev_address;

Assigned device bus address


variable device_desc

const uint8_t* SYN_USB_Device::device_desc;

Pointer to 18-byte Device Descriptor


variable ep0_buf

uint8_t SYN_USB_Device::ep0_buf[SYN_USB_EP0_BUF_SIZE];

Internal EP0 control buffer


variable raw_config_override

bool SYN_USB_Device::raw_config_override;

True if raw config descriptor set


variable state

uint8_t SYN_USB_Device::state;

USB Device State (SYN_USB_STATE_*)


variable string_desc_count

uint8_t SYN_USB_Device::string_desc_count;

String descriptor count


variable string_descs

const uint8_t* SYN_USB_Device::string_descs[SYN_USB_MAX_STRING_DESCS];

String descriptor pointers



The documentation for this class was generated from the following file src/syntropic/drivers/syn_usb.h