|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
ra8_io byte-stream sink over a USB-CDC endpoint. More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_io_stream_usbcdc_state_t |
| Caller-owned private state for a USB-CDC stream sink. More... | |
Functions | |
| ra8_err_t | ra8_io_stream_usbcdc_init (ra8_io_stream_t *s, ra8_io_stream_usbcdc_state_t *state, uint8_t ep_addr) |
| Bind a USB-CDC stream sink into a caller-owned stream handle. | |
ra8_io byte-stream sink over a USB-CDC endpoint.
Streams bytes to the host over a USB-CDC bulk-IN endpoint via ra8_usb_pal – the "print to the host over USB serial" target. The application must have brought the USB device stack and the CDC class up first. The data path is exercised on ra8_emulator / HIL; on the host this sink binds and validates only.
Definition in file ra8_io_stream_usbcdc.h.
|
nodiscard |
Bind a USB-CDC stream sink into a caller-owned stream handle.
| [out] | s | Stream handle to bind (zero-initialised by the caller). |
| [out] | state | Caller-owned sink state to populate. |
| [in] | ep_addr | USB bulk-IN endpoint address to write to. |
| k_ra8_ok | Sink bound; s is usable. |
| k_ra8_err_null_ptr | s or state was NULL. |
Definition at line 100 of file ra8_io_stream_usbcdc.c.
References ra8_io_stream_usbcdc_state_t::ep_addr, RA8_CHECK_NULL_PTR, ra8_io_stream_bind(), s_tag, and s_usbcdc_iface.