#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/device.h>
#include <libmctp.h>
Go to the source code of this file.
◆ MCTP_UART_DT_DEFINE
#define MCTP_UART_DT_DEFINE |
( |
| _name, |
|
|
| _dev ) |
Value:
.binding = \
{ \
.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, \
};
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
-
_name | Symbolic name of the bus binding variable |
_dev | UART device |
◆ mctp_uart_start_rx()
Start the receive of a single mctp message.
Will read a single mctp message from the uart.
- Parameters
-