Microchip® Advanced Software Framework

udi_hid_gpd.h File Reference

USB Device Human Interface Device (HID) gamepad interface.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "conf_usb.h"
#include "usb_protocol.h"
#include "usb_protocol_hid.h"
#include "udc_desc.h"
#include "udi.h"

Data Structures

struct  udi_hid_gpd_desc_t
 
struct  udi_hid_gpd_report_desc_t
 

Macros

#define UDI_HID_GPD_DESC
 
#define UDI_HID_GPD_EP_SIZE   8
 
#define UDI_HID_GPD_STRING_ID   0
 

Functions

bool udi_hid_gpd_buttons (bool b_state, uint8_t key_id)
 Send events key pressed or released. More...
 
bool udi_hid_gpd_moveX (int8_t pos)
 Move the x axe. More...
 
bool udi_hid_gpd_moveY (int8_t pos)
 Move the y axe. More...
 
bool udi_hid_gpd_throttle_move (int8_t pos)
 Move the throttle. More...
 

Variables

UDC_DESC_STORAGE udi_api_t udi_api_hid_gpd