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_host_callback_t | host_callback [USB_HOST_CALLBACK_N] |
Array to store host related callback functions. More... | |
uint8_t | host_enabled_callback_mask |
Bit mask for host callbacks enabled. More... | |
usb_host_pipe_callback_t | host_pipe_callback [USB_PIPE_NUM][USB_HOST_PIPE_CALLBACK_N] |
uint8_t | host_pipe_enabled_callback_mask [USB_PIPE_NUM] |
Bit mask for host pipe callbacks enabled. More... | |
uint8_t | host_pipe_registered_callback_mask [USB_PIPE_NUM] |
Bit mask for host pipe callbacks registered. More... | |
uint8_t | host_registered_callback_mask |
Bit mask for host 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_host_callback_t usb_module::host_callback[USB_HOST_CALLBACK_N] |
Array to store host related callback functions.
Referenced by usb_host_register_callback(), usb_host_unregister_callback(), and usb_init().
uint8_t usb_module::host_enabled_callback_mask |
Bit mask for host callbacks enabled.
Referenced by usb_host_disable_callback(), usb_host_enable_callback(), and usb_init().
usb_host_pipe_callback_t usb_module::host_pipe_callback[USB_PIPE_NUM][USB_HOST_PIPE_CALLBACK_N] |
Referenced by usb_host_pipe_register_callback(), usb_host_pipe_unregister_callback(), and usb_init().
uint8_t usb_module::host_pipe_enabled_callback_mask[USB_PIPE_NUM] |
Bit mask for host pipe callbacks enabled.
Referenced by usb_host_pipe_disable_callback(), usb_host_pipe_enable_callback(), and usb_init().
uint8_t usb_module::host_pipe_registered_callback_mask[USB_PIPE_NUM] |
Bit mask for host pipe callbacks registered.
Referenced by usb_host_pipe_register_callback(), usb_host_pipe_unregister_callback(), and usb_init().
uint8_t usb_module::host_registered_callback_mask |
Bit mask for host callbacks registered.
Referenced by usb_host_register_callback(), usb_host_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_disable_sof(), usb_host_enable(), usb_host_enable_callback(), usb_host_enable_sof(), usb_host_get_frame_number(), usb_host_get_speed(), usb_host_is_sof_enabled(), usb_host_pipe_abort_job(), usb_host_pipe_clear_toggle(), usb_host_pipe_disable_callback(), usb_host_pipe_enable_callback(), usb_host_pipe_freeze(), usb_host_pipe_get_config(), usb_host_pipe_is_frozen(), usb_host_pipe_lpm_job(), usb_host_pipe_read_job(), usb_host_pipe_set_config(), usb_host_pipe_set_toggle(), usb_host_pipe_setup_job(), usb_host_pipe_unfreeze(), usb_host_pipe_write_job(), usb_host_send_l1_resume(), usb_host_send_reset(), usb_host_send_resume(), and usb_init().