|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
ra8_io byte-stream sink over a UART/SCI channel. More...
Go to the source code of this file.
Data Structures | |
| struct | ra8_io_stream_uart_state_t |
| Caller-owned private state for a UART stream sink. More... | |
Functions | |
| ra8_err_t | ra8_io_stream_uart_init (ra8_io_stream_t *s, ra8_io_stream_uart_state_t *state, uint8_t channel) |
| Bind a UART stream sink into a caller-owned stream handle. | |
ra8_io byte-stream sink over a UART/SCI channel.
Streams bytes out of an ra8_sci channel by polling – the "print to the host over the serial console" target. The application must have brought the channel up with ra8_sci_init 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_uart.h.
|
nodiscard |
Bind a UART 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] | channel | SCI channel index to write to. |
| k_ra8_ok | Sink bound; s is usable. |
| k_ra8_err_null_ptr | s or state was NULL. |
Definition at line 109 of file ra8_io_stream_uart.c.
References ra8_io_stream_uart_state_t::channel, RA8_CHECK_NULL_PTR, ra8_io_stream_bind(), s_tag, and s_uart_iface.
Referenced by main(), and ra8_board_console_stream().