Atmel Software Framework

audio/audio_player/ai_hid_class/device_hid_task.h File Reference

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
#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

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().

void device_hid_task ( void  )

Entry point of the device HID task management.

Write report

Write report

References device_hid_key, EP_KBD_IN, HID_NO_KEY, HID_RELEASE_KEY, Is_device_enumerated, is_usb_hid_event(), Is_usb_in_ready, key, Usb_ack_in_ready_send, Usb_reset_endpoint_fifo_access, and Usb_write_endpoint_data.

Referenced by main().

void device_hid_task_init ( void  )

This function initializes the hardware/software resources required for device HID task.

References cpu_ms_2_cy(), cpu_set_timeout(), FCPU_HZ, Is_usb_device, TIMER_STARTUP, and Usb_enable_sof_interrupt.

Referenced by main().