Loading...
Searching...
No Matches
usbus_hid_device Struct Reference

USBUS HID context struct. More...

Detailed Description

USBUS HID context struct.

Definition at line 67 of file hid.h.

#include <hid.h>

Data Fields

usbus_handler_t handler_ctrl
 control handler
 
usbus_interface_t iface
 HID interface.
 
usbus_endpoint_tep_out
 OUT endpoint.
 
usbus_endpoint_tep_in
 IN endpoint.
 
usbus_descr_gen_t hid_descr
 HID descriptor generator.
 
const uint8_t * report_desc
 report descriptor reference
 
size_t report_desc_size
 report descriptor size
 
usbus_tusbus
 USBUS reference.
 
size_t occupied
 Number of bytes for the host.
 
usbus_hid_cb_t cb
 Callback for data handlers.
 
event_t tx_ready
 Transmit ready event.
 
mutex_t in_lock
 mutex used for locking hid send
 
usbdev_ep_buf_t out_buf [CONFIG_USBUS_HID_INTERRUPT_EP_SIZE]
 Host to device data buffer.
 
usbdev_ep_buf_t in_buf [CONFIG_USBUS_HID_INTERRUPT_EP_SIZE]
 Device to host data buffer.
 

Field Documentation

◆ cb

usbus_hid_cb_t usbus_hid_device::cb

Callback for data handlers.

Definition at line 77 of file hid.h.

◆ ep_in

usbus_endpoint_t* usbus_hid_device::ep_in

IN endpoint.

Definition at line 71 of file hid.h.

◆ ep_out

usbus_endpoint_t* usbus_hid_device::ep_out

OUT endpoint.

Definition at line 70 of file hid.h.

◆ handler_ctrl

usbus_handler_t usbus_hid_device::handler_ctrl

control handler

Definition at line 68 of file hid.h.

◆ hid_descr

usbus_descr_gen_t usbus_hid_device::hid_descr

HID descriptor generator.

Definition at line 72 of file hid.h.

◆ iface

usbus_interface_t usbus_hid_device::iface

HID interface.

Definition at line 69 of file hid.h.

◆ in_buf

Device to host data buffer.

Definition at line 89 of file hid.h.

◆ in_lock

mutex_t usbus_hid_device::in_lock

mutex used for locking hid send

Definition at line 79 of file hid.h.

◆ occupied

size_t usbus_hid_device::occupied

Number of bytes for the host.

Definition at line 76 of file hid.h.

◆ out_buf

Host to device data buffer.

Definition at line 84 of file hid.h.

◆ report_desc

const uint8_t* usbus_hid_device::report_desc

report descriptor reference

Definition at line 73 of file hid.h.

◆ report_desc_size

size_t usbus_hid_device::report_desc_size

report descriptor size

Definition at line 74 of file hid.h.

◆ tx_ready

event_t usbus_hid_device::tx_ready

Transmit ready event.

Definition at line 78 of file hid.h.

◆ usbus

usbus_t* usbus_hid_device::usbus

USBUS reference.

Definition at line 75 of file hid.h.


The documentation for this struct was generated from the following file: