|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Snapshot of the attached HID device, passed to the attach callback. More...
#include <ra8_usb_hhid.h>
Data Fields | |
| uint8_t | device_address |
| Assigned USB address (1..127). | |
| uint8_t | intr_in_ep |
| Attached device's intr IN EP num. | |
| uint8_t | intr_out_ep |
| Attached device's intr OUT EP num (0 if absent). | |
| uint8_t | interface_number |
| HID bInterfaceNumber. | |
| uint8_t | subclass |
| bInterfaceSubClass (boot=1). | |
| uint8_t | protocol |
| bInterfaceProtocol (kb=1, ms=2). | |
| uint16_t | intr_in_max_packet |
| Attached intr-IN wMaxPacketSize. | |
| uint16_t | intr_out_max_packet |
| Attached intr-OUT wMaxPacketSize. | |
| uint16_t | vendor_id |
| idVendor from device descriptor. | |
| uint16_t | product_id |
| idProduct from device descriptor. | |
| uint16_t | report_descriptor_len |
| Cached Report desc length. | |
| const uint8_t * | hid_descriptor |
| Pointer to cached HID class desc. | |
| const uint8_t * | report_descriptor |
| Pointer to cached HID Report desc. | |
Snapshot of the attached HID device, passed to the attach callback.
Populated by the host-HID driver once the descriptor walk completes. The pipe number is the controller-side handle wired up against the attached device's interrupt-IN endpoint. The recipient should hold onto this struct (or copy it) so subsequent get/set report calls land on the right interface.
Definition at line 185 of file ra8_usb_hhid.h.
| uint8_t ra8_usb_hhid_device_t::device_address |
Assigned USB address (1..127).
Definition at line 186 of file ra8_usb_hhid.h.
| const uint8_t* ra8_usb_hhid_device_t::hid_descriptor |
Pointer to cached HID class desc.
Definition at line 198 of file ra8_usb_hhid.h.
| uint8_t ra8_usb_hhid_device_t::interface_number |
HID bInterfaceNumber.
Definition at line 190 of file ra8_usb_hhid.h.
| uint8_t ra8_usb_hhid_device_t::intr_in_ep |
Attached device's intr IN EP num.
Definition at line 187 of file ra8_usb_hhid.h.
| uint16_t ra8_usb_hhid_device_t::intr_in_max_packet |
Attached intr-IN wMaxPacketSize.
Definition at line 193 of file ra8_usb_hhid.h.
| uint8_t ra8_usb_hhid_device_t::intr_out_ep |
Attached device's intr OUT EP num (0 if absent).
Definition at line 188 of file ra8_usb_hhid.h.
| uint16_t ra8_usb_hhid_device_t::intr_out_max_packet |
Attached intr-OUT wMaxPacketSize.
Definition at line 194 of file ra8_usb_hhid.h.
| uint16_t ra8_usb_hhid_device_t::product_id |
idProduct from device descriptor.
Definition at line 196 of file ra8_usb_hhid.h.
| uint8_t ra8_usb_hhid_device_t::protocol |
bInterfaceProtocol (kb=1, ms=2).
Definition at line 192 of file ra8_usb_hhid.h.
| const uint8_t* ra8_usb_hhid_device_t::report_descriptor |
Pointer to cached HID Report desc.
Definition at line 199 of file ra8_usb_hhid.h.
| uint16_t ra8_usb_hhid_device_t::report_descriptor_len |
Cached Report desc length.
Definition at line 197 of file ra8_usb_hhid.h.
| uint8_t ra8_usb_hhid_device_t::subclass |
bInterfaceSubClass (boot=1).
Definition at line 191 of file ra8_usb_hhid.h.
| uint16_t ra8_usb_hhid_device_t::vendor_id |
idVendor from device descriptor.
Definition at line 195 of file ra8_usb_hhid.h.