Data Structures | Enumerations | Functions

usb/include/usb_hid.h File Reference

USB HID Class Enumerations and Structures. More...

Go to the source code of this file.

Data Structures

struct  hid_descriptor
struct  hid_optional_descriptor

Enumerations

enum  HIDDescriptorTypes { DESC_HID = 0x21, DESC_REPORT = 0x22, DESC_PHYSICAL = 0x23 }
 

HID Class Descriptor Tyes.


enum  HIDRequests {
  HID_GET_REPORT = 0x1, HID_GET_IDLE = 0x2, HID_GET_PROTOCOL = 0x3, HID_SET_REPORT = 0x9,
  HID_SET_IDLE = 0xa, HID_SET_PROTOCOL = 0xb
}
 

HID Class Requests.


enum  HIDReportTypes { HID_INPUT = 0x1, HID_OUTPUT = 0x2, HID_FEATURE = 0x3 }
 

HID Report Types.


enum  HIDProtocols { HID_PROTO_BOOT = 0, HID_PROTO_REPORT = 1 }
 

HID Protocols.


Functions

int16_t USB_HID_DESCRIPTOR_FUNC (uint8_t interface, const void **ptr)
 HID Descriptor Function.
int16_t USB_HID_REPORT_DESCRIPTOR_FUNC (uint8_t interface, const void **ptr)
 HID Report Descriptor Function.
int16_t USB_HID_PHYSICAL_DESCRIPTOR_FUNC (uint8_t interface, uint8_t index, const void **ptr)
 HID Physical Descriptor Function.
int16_t HID_GET_REPORT_CALLBACK (uint8_t interface, uint8_t report_type, uint8_t report_id, const void **report, usb_ep0_data_stage_callback *callback, void **context)
 HID Get_Report request callback.
int8_t HID_SET_REPORT_CALLBACK (uint8_t interface, uint8_t report_type, uint8_t report_id)
 HID Set_Report request callback.
uint8_t HID_GET_IDLE_CALLBACK (uint8_t interface, uint8_t report_id)
 HID Get_Idle request callback.
int8_t HID_SET_IDLE_CALLBACK (uint8_t interface, uint8_t report_id, uint8_t idle_rate)
 HID Set_Idle request callback.
int8_t HID_GET_PROTOCOL_CALLBACK (uint8_t interface)
 HID Get_Protocol request callback.
int8_t HID_SET_PROTOCOL_CALLBACK (uint8_t interface, uint8_t protocol)
 HID Set_Protocol request callback.
void hid_set_interface_list (uint8_t *interfaces, uint8_t num_interfaces)
 Set the list of HID interfaces on this device.
uint8_t process_hid_setup_request (const struct setup_packet *setup)
 Process HID Setup Request.

Detailed Description

USB HID Class Enumerations and Structures.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator