Microchip® Advanced Software Framework

usb_module Struct Reference

USB software module instance structure.

USB software module instance structure, used to retain software state information of an associated hardware module instance.

#include <usb.h>

Data Fields

usb_device_callback_t device_callback [USB_DEVICE_CALLBACK_N]
 Array to store device related callback functions. More...
 
uint16_t device_enabled_callback_mask
 Bit mask for device callbacks enabled. More...
 
usb_device_endpoint_callback_t device_endpoint_callback [USB_EPT_NUM][USB_DEVICE_EP_CALLBACK_N]
 
uint8_t device_endpoint_enabled_callback_mask [USB_EPT_NUM]
 Bit mask for device endpoint callbacks enabled. More...
 
uint8_t device_endpoint_registered_callback_mask [USB_EPT_NUM]
 Bit mask for device endpoint callbacks registered. More...
 
uint16_t device_registered_callback_mask
 Bit mask for device callbacks registered. More...
 
Usb * hw
 Hardware module pointer of the associated USB peripheral. More...
 

usb_device_callback_t usb_module::device_callback[USB_DEVICE_CALLBACK_N]

Array to store device related callback functions.

Referenced by usb_device_register_callback(), usb_device_unregister_callback(), and usb_init().

uint16_t usb_module::device_enabled_callback_mask

Bit mask for device callbacks enabled.

Referenced by usb_device_disable_callback(), usb_device_enable_callback(), and usb_init().

uint8_t usb_module::device_endpoint_enabled_callback_mask[USB_EPT_NUM]

Bit mask for device endpoint callbacks enabled.

Referenced by usb_device_endpoint_disable_callback(), usb_device_endpoint_enable_callback(), and usb_init().

uint8_t usb_module::device_endpoint_registered_callback_mask[USB_EPT_NUM]

Bit mask for device endpoint callbacks registered.

Referenced by usb_device_endpoint_register_callback(), usb_device_endpoint_unregister_callback(), and usb_init().

uint16_t usb_module::device_registered_callback_mask

Bit mask for device callbacks registered.

Referenced by usb_device_register_callback(), usb_device_unregister_callback(), and usb_init().