NUC472_NUC442_BSP V3.03.004
The Board Support Package for NUC472/NUC442
Functions
hid_core.c File Reference

NUC472/NUC442 MCU USB Host HID library core. More...

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "NUC472_442.h"
#include "usbh_core.h"
#include "usbh_hid.h"
Include dependency graph for hid_core.c:

Go to the source code of this file.

Functions

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

Detailed Description

NUC472/NUC442 MCU USB Host HID library core.

Version
V1.00
Revision
15
Date
16/01/19 4:55p
Note
SPDX-License-Identifier: Apache-2.0 Copyright (C) 2014 Nuvoton Technology Corp. All rights reserved.

Definition in file hid_core.c.