Macros | |
#define | DEVICE_TO_HOST 0x01 |
#define | DIR_LOCAL_IN_NAME "IN" |
#define | DIR_LOCAL_OUT_NAME "OUT" |
#define | DIR_USB_IN_NAME "IN" |
#define | DIR_USB_OUT_NAME "OUT" |
#define | FULL_SYNC (DEVICE_TO_HOST | HOST_TO_DEVICE) |
#define | HOST_TO_DEVICE 0x02 |
#define | Is_host_mouse_hid_configured() (mouse_hid_connected && !Is_host_suspended()) |
#define | LED_HOST_MOUSE_B0 LED_MONO0_GREEN |
#define | LED_HOST_MOUSE_B1 LED_MONO1_GREEN |
#define | LED_HOST_MOUSE_B2 LED_MONO2_GREEN |
#define | LED_HOST_MOUSE_B3 LED_MONO3_GREEN |
Functions | |
void | host_mouse_hid_task (void *pvParameters) |
This function manages the host mouse HID task. More... | |
void | host_mouse_hid_task_init (void) |
This function initializes the host mouse HID task. More... | |
void | host_sof_action (void) |
host_sof_action More... | |
Variables | |
volatile bool | ms_connected |
#define DEVICE_TO_HOST 0x01 |
#define DIR_LOCAL_IN_NAME "IN" |
#define DIR_LOCAL_OUT_NAME "OUT" |
#define DIR_USB_IN_NAME "IN" |
#define DIR_USB_OUT_NAME "OUT" |
#define FULL_SYNC (DEVICE_TO_HOST | HOST_TO_DEVICE) |
#define HOST_TO_DEVICE 0x02 |
#define Is_host_mouse_hid_configured | ( | ) | (mouse_hid_connected && !Is_host_suspended()) |
Referenced by host_mouse_hid_task().
#define LED_HOST_MOUSE_B0 LED_MONO0_GREEN |
Referenced by disp_led_mouse(), and host_mouse_hid_task().
#define LED_HOST_MOUSE_B1 LED_MONO1_GREEN |
Referenced by disp_led_mouse(), and host_mouse_hid_task().
#define LED_HOST_MOUSE_B2 LED_MONO2_GREEN |
Referenced by disp_led_mouse(), and host_mouse_hid_task().
#define LED_HOST_MOUSE_B3 LED_MONO3_GREEN |
Referenced by disp_led_mouse(), and host_mouse_hid_task().
void host_mouse_hid_task | ( | void * | pvParameters | ) |
This function manages the host mouse HID task.
References configTSK_USB_HHID_MOUSE_PERIOD, disp_ascii_mouse(), disp_led_mouse(), Get_class, Get_ep_pipe, Get_nb_supported_interface, Get_protocol, HID_CLASS, HID_IDLE_DURATION_INDEFINITE, HID_REPORT_DESCRIPTOR, HID_REPORT_ID_ALL, Host_ack_in_received, Host_ack_nak_received, Host_enable_continuous_in_mode, Host_free_in, host_hid_get_report(), host_hid_set_idle(), host_read_p_rxpacket(), Host_reset_pipe_fifo_access, Host_unfreeze_pipe, Is_host_in_received, Is_host_mouse_hid_configured, Is_host_nak_received, Is_host_ready, Is_host_stall, LED_HOST_MOUSE_B0, LED_HOST_MOUSE_B1, LED_HOST_MOUSE_B2, LED_HOST_MOUSE_B3, LED_Off(), mouse_b0, mouse_b1, mouse_b2, mouse_hid_connected, mouse_hid_new_device_connected, MOUSE_PROTOCOL, mouse_x, MOUSE_X_MAX, MOUSE_X_MIN, mouse_y, MOUSE_Y_MAX, MOUSE_Y_MIN, new_x, new_y, pipe_mouse_in, usb_report, vTaskDelayUntil(), and xTaskGetTickCount().
Referenced by host_mouse_hid_task_init(), and main().
void host_mouse_hid_task_init | ( | void | ) |
This function initializes the host mouse HID task.
References configTSK_USB_HHID_MOUSE_NAME, configTSK_USB_HHID_MOUSE_PRIORITY, configTSK_USB_HHID_MOUSE_STACK_SIZE, host_mouse_hid_task(), mouse_hid_connected, mouse_hid_new_device_connected, sof_cnt, and xTaskCreate.
Referenced by main().
volatile bool ms_connected |