NUC472_NUC442_BSP V3.03.004
The Board Support Package for NUC472/NUC442
Data Structures | Macros | Typedefs | Functions
usbh_hid.h File Reference
#include "usbh_core.h"
Include dependency graph for usbh_hid.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usbhid_dev
 

Macros

#define CONFIG_HID_MAX_DEV
 
#define HID_MAX_BUFFER_SIZE
 
#define HID_CLIENT_SIZE
 
#define HID_RET_OK
 
#define HID_RET_DEV_NOT_FOUND
 
#define HID_RET_IO_ERR
 
#define HID_RET_INVALID_PARAMETER
 
#define HID_RET_OUT_OF_MEMORY
 
#define HID_RET_NOT_SUPPORTED
 
#define HID_REPORT_GET
 
#define HID_GET_IDLE
 
#define HID_GET_PROTOCOL
 
#define HID_REPORT_SET
 
#define HID_SET_IDLE
 
#define HID_SET_PROTOCOL
 
#define RT_INPUT
 
#define RT_OUTPUT
 
#define RT_FEATURE
 

Typedefs

typedef void() HID_IR_FUNC(struct usbhid_dev *hdev, uint8_t *rdata, int data_len)
 
typedef void() HID_IW_FUNC(struct usbhid_dev *hdev, uint8_t **wbuff, int *buff_size)
 
typedef struct usbhid_dev HID_DEV_T
 

Functions

void USBH_HidInit (void)
 Init USB Host HID driver. More...
 
HID_DEV_TUSBH_HidGetDeviceList (void)
 Get a list of currently connected USB Hid devices. More...
 
int32_t HID_HidGetReportDescriptor (HID_DEV_T *hdev, uint8_t *desc_buf, int buf_max_len)
 Get report descriptor request. More...
 
int32_t HID_HidGetReport (HID_DEV_T *hdev, int rtp_typ, int rtp_id, uint8_t *data, int len)
 HID class standard request Get_Report request. The Get_Report request allows the host to receive a report via the Control pipe. More...
 
int32_t HID_HidSetReport (HID_DEV_T *hdev, int rtp_typ, int rtp_id, uint8_t *data, int len)
 HID class standard request Set_Report request. The Set_Report request allows the host to send a report to the device, possibly setting the state of input, output, or feature controls. More...
 
int32_t HID_HidGetIdle (HID_DEV_T *hdev, int rtp_id, uint8_t *idle_rate)
 HID class standard request Get_Idle request. The Get_Idle request reads the current idle rate for a particular Input report. More...
 
int32_t HID_HidSetIdle (HID_DEV_T *hdev, int rtp_id, uint8_t idle_rate)
 HID class standard request Set_Idle request. The Set_Idle request silences a particular report on the Interrupt In pipe until a new event occurs or the specified amount of time passes. More...
 
int32_t HID_HidGetProtocol (HID_DEV_T *hdev, uint8_t *protocol)
 HID class standard request Get_Protocol request. The Get_Protocol request reads which protocol is currently active (either the boot protocol or the report protocol.) More...
 
int32_t HID_HidSetProtocol (HID_DEV_T *hdev, uint8_t protocol)
 HID class standard request Set_Protocol request. The Set_Protocol switches between the boot protocol and the report protocol (or vice versa). More...
 
int32_t USBH_HidStartIntReadPipe (HID_DEV_T *hdev, HID_IR_FUNC *func)
 Start purge the USB interrupt in transfer. More...
 
int32_t USBH_HidStartIntWritePipe (HID_DEV_T *hdev, HID_IW_FUNC *func)
 Start purge the USB interrupt out transfer. More...