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().
usb_device_endpoint_callback_t usb_module::device_endpoint_callback[USB_EPT_NUM][USB_DEVICE_EP_CALLBACK_N] |
Referenced by usb_device_endpoint_register_callback(), usb_device_endpoint_unregister_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().
Usb* usb_module::hw |
Hardware module pointer of the associated USB peripheral.
Referenced by usb_device_attach(), usb_device_detach(), usb_device_disable_callback(), usb_device_enable_callback(), usb_device_endpoint_abort_job(), usb_device_endpoint_clear_halt(), usb_device_endpoint_disable_callback(), usb_device_endpoint_enable_callback(), usb_device_endpoint_is_configured(), usb_device_endpoint_is_halted(), usb_device_endpoint_read_buffer_job(), usb_device_endpoint_set_config(), usb_device_endpoint_set_halt(), usb_device_endpoint_setup_buffer_job(), usb_device_endpoint_write_buffer_job(), usb_device_get_address(), usb_device_get_frame_number(), usb_device_get_micro_frame_number(), usb_device_get_speed(), usb_device_send_remote_wake_up(), usb_device_set_address(), usb_device_set_lpm_mode(), usb_disable(), usb_enable(), usb_get_state_machine_status(), usb_host_disable_callback(), usb_host_enable_callback(), usb_host_pipe_abort_job(), usb_host_pipe_disable_callback(), usb_host_pipe_enable_callback(), usb_host_pipe_get_config(), usb_host_pipe_lpm_job(), usb_host_pipe_read_job(), usb_host_pipe_set_config(), usb_host_pipe_setup_job(), usb_host_pipe_write_job(), and usb_init().