8#ifndef ZEPHYR_MCTP_UART_H_
9#define ZEPHYR_MCTP_UART_H_
21 struct mctp_binding binding;
27 struct mctp_pktbuf *rx_pkt;
32 STATE_WAIT_SYNC_START,
60int mctp_uart_start(
struct mctp_binding *binding);
61int mctp_uart_tx(
struct mctp_binding *binding,
struct mctp_pktbuf *pkt);
70#define MCTP_UART_DT_DEFINE(_name, _dev) \
71 struct mctp_binding_uart _name = { \
74 .name = STRINGIFY(_name), .version = 1, \
75 .pkt_size = MCTP_PACKET_SIZE(MCTP_BTU), \
76 .pkt_header = 0, .pkt_trailer = 0, \
77 .start = mctp_uart_start, .tx = mctp_uart_tx, \
80 .rx_state = STATE_WAIT_SYNC_START, \
void mctp_uart_start_rx(struct mctp_binding_uart *uart)
Start the receive of a single mctp message.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Runtime device structure (in ROM) per driver instance.
Definition device.h:411
An MCTP binding for Zephyr's asynchronous UART interface.
Definition mctp_uart.h:19