Microchip® Advanced Software Framework

device_generic_hid_task.c File Reference
#include "conf_usb.h"
#include "board.h"
#include "usb_drv.h"
#include "gpio.h"
#include "joystick.h"
#include "usb_descriptors.h"
#include "usb_standard_request.h"
#include "device_generic_hid_task.h"
#include <string.h>

Macros

#define RXBUF_SIZE   8
 
#define TXBUF_SIZE   8
 

Functions

void device_generic_hid_task (void)
 Entry point of the HID generic communication task This function manages IN/OUT report management. More...
 
void device_generic_hid_task_init (void)
 This function initializes the hardware/software resources required for device generic HID task. More...
 
static void hid_report_in (void)
 Send data report to Host. More...
 
static void hid_report_out (void)
 Get data report from Host. More...
 
void usb_sof_action (void)
 usb_sof_action More...
 

Variables

int jump_bootloader
 
int last_joy = 0
 
char rxbuf [RXBUF_SIZE]
 
static uint16_t sof_cnt
 
char txbuf [TXBUF_SIZE]
 

#define RXBUF_SIZE   8

Referenced by hid_report_in(), and hid_report_out().

#define TXBUF_SIZE   8

void device_generic_hid_task ( void  )

Entry point of the HID generic communication task This function manages IN/OUT report management.

References hid_report_in(), hid_report_out(), and Is_device_enumerated.

Referenced by main().

void device_generic_hid_task_init ( void  )

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

References Is_usb_device, sof_cnt, and Usb_enable_sof_interrupt.

Referenced by main().

int jump_bootloader
int last_joy = 0

Referenced by hid_report_in().

char rxbuf[RXBUF_SIZE]
uint16_t sof_cnt
static
char txbuf[TXBUF_SIZE]