59typedef enum : uint8_t {
68typedef enum : uint8_t {
80typedef enum : uint16_t {
93typedef enum : uint8_t {
105typedef enum : uint8_t {
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Native USB controller driver public API (device + host modes).
ra8_usb_speed_t
Selects which controller instance the call targets.
ra8_err_t(* ra8_usb_pvnd_setup_fn_t)(void *ctx, const ra8_usb_setup_t *setup)
Caller-supplied vendor class-setup handler signature.
ra8_err_t ra8_usb_pvnd_set_descriptors(const uint8_t *desc, uint16_t desc_len)
Install the caller-supplied descriptor blob.
ra8_err_t ra8_usb_pvnd_recv(uint8_t *buf, uint16_t max_len, uint16_t *got_len)
Drain a payload from the vendor bulk-OUT endpoint.
ra8_err_t ra8_usb_pvnd_handle_setup(const ra8_usb_setup_t *setup)
Process a vendor-specific SETUP packet on EP0.
ra8_usb_pvnd_envelope_t
bmRequestType envelopes that are vendor-recipient SETUPs.
@ k_ra8_pvnd_bm_vendor_iface_in
Vendor | Interface | In.
@ k_ra8_pvnd_bm_vendor_ep_out
Vendor | Endpoint | Out.
@ k_ra8_pvnd_bm_vendor_dev_in
Vendor | Device | In.
@ k_ra8_pvnd_bm_vendor_iface_out
Vendor | Interface | Out.
@ k_ra8_pvnd_bm_vendor_dev_out
Vendor | Device | Out.
@ k_ra8_pvnd_bm_vendor_ep_in
Vendor | Endpoint | In.
ra8_err_t ra8_usb_pvnd_init(ra8_usb_speed_t speed)
Bring up the device-Vendor function on a chosen USB controller.
ra8_err_t ra8_usb_pvnd_attach_setup_handler(ra8_usb_pvnd_setup_fn_t setup_fn, void *ctx)
Register the application's vendor setup handler.
ra8_usb_pvnd_pipe_t
PIPE numbers used by the device-Vendor function for the local bulk endpoints.
@ k_ra8_pvnd_pipe_bulk_out
PIPE1 -> EP2 OUT (vendor OUT).
@ k_ra8_pvnd_pipe_bulk_in
PIPE5 -> EP1 IN (vendor IN).
ra8_err_t ra8_usb_pvnd_close(void)
Tear down the device-Vendor function and release the controller.
ra8_usb_pvnd_ep_t
USB endpoint addresses used by the device-Vendor function.
@ k_ra8_pvnd_ep_bulk_in_addr
EP1 IN address.
@ k_ra8_pvnd_ep_bulk_out_addr
EP2 OUT address.
ra8_usb_pvnd_class_t
Class / subclass / protocol triplet that identifies the local Vendor function in the configuration de...
@ k_ra8_pvnd_class_vendor
Vendor-specific interface class.
ra8_err_t ra8_usb_pvnd_send(const uint8_t *data, uint16_t len)
Push a payload on the vendor bulk-IN endpoint.
ra8_usb_pvnd_packet_t
Packet sizing for the bulk endpoints.
@ k_ra8_pvnd_bulk_max_packet_hs
Bulk size at HS.
@ k_ra8_pvnd_bulk_max_packet_fs
Bulk size at FS.
Decoded 8-byte USB SETUP packet.