Loading...
Searching...
No Matches
hid.h File Reference

Interface and definitions for USB HID type interfaces in USBUS. More...

Detailed Description

Interface and definitions for USB HID type interfaces in USBUS.

The functionality provided here only implements the USB specific handling. A different module is required to provide functional handling of the data e.g. UART or STDIO integration.

Author
Nils Ollrogge nils..nosp@m.ollr.nosp@m.ogge@.nosp@m.fu-b.nosp@m.erlin.nosp@m..de

Definition in file hid.h.

#include <stdint.h>
#include "usb/usbus.h"
#include "usb/hid.h"
#include "mutex.h"
+ Include dependency graph for hid.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  usbus_hid_device
 USBUS HID context struct. More...
 

Macros

#define CONFIG_USBUS_HID_INTERRUPT_EP_SIZE   0x40
 USB HID interrupt endpoint size.
 

Typedefs

typedef struct usbus_hid_device usbus_hid_device_t
 USBUS HID context struct forward declaration.
 
typedef void(* usbus_hid_cb_t) (usbus_hid_device_t *hid, uint8_t *data, size_t len)
 HID data callback.
 

Functions

void usbus_hid_init (usbus_t *usbus, usbus_hid_device_t *hid, usbus_hid_cb_t cb, const uint8_t *report_desc, size_t report_desc_size)
 Initialize an USBUS HID interface.