Macros | |
#define | Is_host_ms_configured() (ms_connected && !Is_host_suspended()) |
Functions | |
void | host_mass_storage_task (void) |
This function manages the host mass-storage task. More... | |
void | host_mass_storage_task_init (void) |
This function initializes the host mass-storage task. More... | |
Variables | |
volatile bool | ms_connected |
#define Is_host_ms_configured | ( | ) | (ms_connected && !Is_host_suspended()) |
void host_mass_storage_task | ( | void | ) |
This function manages the host mass-storage task.
References ai_usb_ms_new_connection(), capacity, CTRL_BUSY, CTRL_FAIL, CTRL_GOOD, CTRL_NO_PRESENT, DEVICE_ERROR, device_state, g_pipe_ms_in, g_pipe_ms_out, Get_class, Get_ep_pipe, Get_nb_supported_interface, Host_device_class_not_supported_action, host_get_lun(), host_ms_inquiry(), host_ms_request_sense(), host_read_capacity(), host_selected_lun, host_test_unit_ready(), Is_ep_in, Is_host_ready, log_ms_dev_connected, LOG_STR, MS_CLASS, ms_connected, and ms_new_device_connected.
Referenced by host_mass_storage_task_init().
void host_mass_storage_task_init | ( | void | ) |
This function initializes the host mass-storage task.
References host_mass_storage_task(), ms_connected, and ms_new_device_connected.
volatile bool ms_connected |
Referenced by ai_usb_ms_get_device_status(), host_mass_storage_task(), and host_mass_storage_task_init().