|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Caller-owned class-layer registration record. More...
#include <ra8_usb_composite.h>
Data Fields | |
| uint8_t | interface_number_first |
| First IF this class owns. | |
| uint8_t | interface_number_count |
| IF count (CDC=2, HID=1...). | |
| ra8_usb_composite_init_fn_t | init |
| init callback (non-NULL). | |
| ra8_usb_composite_setup_fn_t | handle_setup |
| setup callback (non-NULL). | |
| ra8_usb_composite_close_fn_t | close |
| close callback (non-NULL). | |
| void * | ctx |
| Opaque context. | |
Caller-owned class-layer registration record.
All three function pointers must be non-NULL. ctx is opaque to the composite layer and threaded back into each callback unchanged. The [interface_number_first, interface_number_first + interface_number_count) range describes which IF numbers from the configuration descriptor this class owns. CDC ACM consumes 2 IFs (control + data); HID and MSC each consume 1.
Definition at line 172 of file ra8_usb_composite.h.
| ra8_usb_composite_close_fn_t ra8_usb_composite_class_t::close |
close callback (non-NULL).
Definition at line 177 of file ra8_usb_composite.h.
Referenced by internal_validate_class(), and ra8_usb_composite_close().
| void* ra8_usb_composite_class_t::ctx |
Opaque context.
Definition at line 178 of file ra8_usb_composite.h.
Referenced by internal_route_class(), ra8_usb_composite_close(), and ra8_usb_composite_register_class().
| ra8_usb_composite_setup_fn_t ra8_usb_composite_class_t::handle_setup |
setup callback (non-NULL).
Definition at line 176 of file ra8_usb_composite.h.
Referenced by internal_route_class(), and internal_validate_class().
| ra8_usb_composite_init_fn_t ra8_usb_composite_class_t::init |
init callback (non-NULL).
Definition at line 175 of file ra8_usb_composite.h.
Referenced by internal_validate_class(), and ra8_usb_composite_register_class().
| uint8_t ra8_usb_composite_class_t::interface_number_count |
IF count (CDC=2, HID=1...).
Definition at line 174 of file ra8_usb_composite.h.
Referenced by internal_check_collision(), internal_mark_ownership(), and internal_validate_class().
| uint8_t ra8_usb_composite_class_t::interface_number_first |
First IF this class owns.
Definition at line 173 of file ra8_usb_composite.h.
Referenced by internal_check_collision(), internal_mark_ownership(), and internal_validate_class().