Atmel Software Framework

device_mouse_hid_task.c File Reference
#include "conf_usb.h"
#include "qt1081.h"
#include "lis3l06al.h"
#include "board.h"
#include "usb_drv.h"
#include "gpio.h"
#include "usb_descriptors.h"
#include "usb_standard_request.h"
#include "device_mouse_hid_task.h"

Macros

#define BUTTON_0_EVENT_PUSH   1
 
#define BUTTON_1_EVENT_PUSH   4
 
#define BUTTON_2_EVENT_PUSH   2
 
#define DISP_LIMIT_HIGH   300
 
#define DISP_LIMIT_LOW   150
 

Functions

void device_mouse_hid_task (void)
 Entry point of the device mouse HID task management. More...
 
void device_mouse_hid_task_init (void)
 This function initializes the hardware/software resources required for device mouse HID task. More...
 
bool is_usb_mouse_event (void)
 Looks for mouse events. More...
 
void usb_sof_action (void)
 usb_sof_action More...
 
void usb_suspend (void)
 Suspend callback. More...
 

Variables

uint8_t remote_wakeup_feature
 
static uint16_t sof_cnt
 
uint8_t u8_report_buttons =0
 
int8_t u8_report_disp_wheel =0
 
int8_t u8_report_disp_x =0
 
int8_t u8_report_disp_y =0
 

#define BUTTON_0_EVENT_PUSH   1

Referenced by is_usb_mouse_event().

#define BUTTON_1_EVENT_PUSH   4

Referenced by is_usb_mouse_event().

#define BUTTON_2_EVENT_PUSH   2

Referenced by is_usb_mouse_event().

#define DISP_LIMIT_HIGH   300

Referenced by is_usb_mouse_event().

#define DISP_LIMIT_LOW   150

Referenced by is_usb_mouse_event().

void device_mouse_hid_task_init ( void  )

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

References acc_init(), configTSK_USB_DHID_MOUSE_NAME, configTSK_USB_DHID_MOUSE_PRIORITY, configTSK_USB_DHID_MOUSE_STACK_SIZE, device_mouse_hid_task(), Is_usb_device, NULL, sof_cnt, Usb_enable_sof_interrupt, and xTaskCreate.

Referenced by main().

uint8_t remote_wakeup_feature
uint16_t sof_cnt
static
uint8_t u8_report_buttons =0
int8_t u8_report_disp_wheel =0
int8_t u8_report_disp_x =0
int8_t u8_report_disp_y =0