USB Device Interface (UDI) for Human Interface Device generic (HID generic) provides an interface for the configuration and management of USB HID generic device.
The outline of this documentation is as follows:
For more details for Atmel® Software Framework (ASF) USB Device Stack and USB Device HID generic, refer to following application notes:
Data Structures | |
struct | udi_hid_generic_desc_t |
Interface descriptor structure for HID generic. More... | |
struct | udi_hid_generic_report_desc_t |
Report descriptor for HID generic. More... | |
Interface with USB Device Core (UDC) | |
UDC_DESC_STORAGE udi_api_t | udi_api_hid_generic |
Global structure which contains standard UDI API for UDC. More... | |
USB Interface Descriptors | |
The following structures provide predefined USB interface descriptors. It must be used to define the final USB descriptors. | |
#define | UDI_HID_GENERIC_STRING_ID 0 |
By default no string associated to this interface. More... | |
#define | UDI_HID_GENERIC_DESC |
Content of HID generic interface descriptor for all speed. More... | |
USB Device Interface (UDI) for Human Interface Device (HID) Generic Class | |
Common APIs used by high level application to use this USB class. | |
bool | udi_hid_generic_send_report_in (uint8_t *data) |
Routine used to send a report to USB Host. More... | |
#define UDI_HID_GENERIC_DESC |
Content of HID generic interface descriptor for all speed.
#define UDI_HID_GENERIC_STRING_ID 0 |
By default no string associated to this interface.
bool udi_hid_generic_send_report_in | ( | uint8_t * | data | ) |
Routine used to send a report to USB Host.
[in] | data | Pointer on the report to send (size = UDI_HID_REPORT_IN_SIZE) |
1
if function was successfully done, otherwise 0
. UDC_DESC_STORAGE udi_api_t udi_api_hid_generic |
Global structure which contains standard UDI API for UDC.
Global structure which contains standard UDI API for UDC.