ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_io_stream_uart.h
Go to the documentation of this file.
1
19
20#pragma once
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include <stdint.h>
27
28#include "ra8_err.h"
29#include "ra8_io_stream.h"
30
42typedef struct {
43 uint8_t channel;
45
66[[nodiscard]] ra8_err_t
68
69#ifdef __cplusplus
70}
71#endif
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
Definition ra8_err.h:546
ra8_io targetable byte-stream facade – one writer, many destinations.
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.
Caller-allocated byte-stream handle binding a sink to its context.
Caller-owned private state for a UART stream sink.
uint8_t channel
SCI channel index (private).