Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mctp_uart.h File Reference
#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <libmctp.h>

Go to the source code of this file.

Data Structures

struct  mctp_binding_uart
 An MCTP binding for Zephyr's asynchronous UART interface. More...
 

Macros

#define MCTP_UART_DT_DEFINE(_name, _dev)
 INTERNAL_HIDDEN.
 

Functions

void mctp_uart_start_rx (struct mctp_binding_uart *uart)
 Start the receive of a single mctp message.
 

Macro Definition Documentation

◆ MCTP_UART_DT_DEFINE

#define MCTP_UART_DT_DEFINE ( _name,
_dev )
Value:
struct mctp_binding_uart _name = { \
.binding = \
{ \
.name = STRINGIFY(_name), .version = 1, \
.pkt_size = MCTP_PACKET_SIZE(MCTP_BTU), \
.pkt_header = 0, .pkt_trailer = 0, \
.start = mctp_uart_start, .tx = mctp_uart_tx, \
}, \
.dev = _dev, \
.rx_state = STATE_WAIT_SYNC_START, \
.rx_pkt = NULL, \
.rx_res = 0, \
.tx_res = 0, \
};
#define STRINGIFY(s)
Definition common.h:134
An MCTP binding for Zephyr's asynchronous UART interface.
Definition mctp_uart.h:19

INTERNAL_HIDDEN.

Statically define a MCTP bus binding for a UART

Parameters
_nameSymbolic name of the bus binding variable
_devUART device

Function Documentation

◆ mctp_uart_start_rx()

void mctp_uart_start_rx ( struct mctp_binding_uart * uart)

Start the receive of a single mctp message.

Will read a single mctp message from the uart.

Parameters
uartMCTP UART binding