Macros | |
#define | HID_FAST_FWD 32 |
#define | HID_FAST_RWD 64 |
#define | HID_NEXT 8 |
#define | HID_NO_KEY ((uint8_t) -1) |
#define | HID_PLAY_PAUSE 4 |
#define | HID_PREV 16 |
#define | HID_RELEASE_KEY 0 |
#define | HID_VOL_DN 2 |
#define | HID_VOL_UP 1 |
Functions | |
bool | device_hid_is_complete (void) |
bool | device_hid_send (uint8_t key) |
void | device_hid_task (void) |
Entry point of the device HID task management. More... | |
void | device_hid_task_init (void) |
This function initializes the hardware/software resources required for device HID task. More... | |
#define HID_FAST_FWD 32 |
Referenced by ai_hid_class_audio_ctrl_ffw().
#define HID_FAST_RWD 64 |
Referenced by ai_hid_class_audio_ctrl_frw().
#define HID_NEXT 8 |
Referenced by ai_hid_class_audio_nav_next().
#define HID_NO_KEY ((uint8_t) -1) |
Referenced by device_hid_is_complete(), and device_hid_task().
#define HID_PLAY_PAUSE 4 |
Referenced by ai_hid_class_audio_ctrl_pause(), and ai_hid_class_audio_ctrl_resume().
#define HID_PREV 16 |
Referenced by ai_hid_class_audio_nav_previous().
#define HID_RELEASE_KEY 0 |
Referenced by device_hid_task().
#define HID_VOL_DN 2 |
#define HID_VOL_UP 1 |
bool device_hid_is_complete | ( | void | ) |
References device_hid_key, and HID_NO_KEY.
Referenced by device_hid_send().
bool device_hid_send | ( | uint8_t | key | ) |
void device_hid_task | ( | void | ) |
Entry point of the device HID task management.
Write report
References device_hid_key, HID_NO_KEY, HID_RELEASE_KEY, Is_device_enumerated, Is_usb_in_ready, Usb_ack_in_ready_send, Usb_reset_endpoint_fifo_access, and Usb_write_endpoint_data.
void device_hid_task_init | ( | void | ) |
This function initializes the hardware/software resources required for device HID task.
References Is_usb_device, and Usb_enable_sof_interrupt.