![]() |
eRPC API Reference
Rev. 1.7.2
NXP Semiconductors
|
Very basic transport to send/receive messages via UART. More...
#include <erpc_uart_cmsis_transport.h>
Public Member Functions | |
UartTransport (ARM_DRIVER_USART *uartDrv) | |
Constructor. More... | |
virtual | ~UartTransport (void) |
Destructor. | |
virtual erpc_status_t | init (void) |
Initialize CMSIS UART peripheral configuration structure with values specified in UartTransport constructor. More... | |
![]() | |
FramedTransport (void) | |
Constructor. | |
virtual | ~FramedTransport (void) |
Codec destructor. | |
virtual erpc_status_t | receive (MessageBuffer *message) |
Receives an entire message. More... | |
virtual erpc_status_t | send (MessageBuffer *message) |
Function to send prepared message. More... | |
virtual void | setCrc16 (Crc16 *crcImpl) |
This functions sets the CRC-16 implementation. More... | |
![]() | |
Transport (void) | |
Constructor. | |
virtual | ~Transport (void) |
Transport destructor. | |
virtual bool | hasMessage (void) |
Poll for an incoming message. More... | |
Protected Attributes | |
ARM_DRIVER_USART * | m_uartDrv |
![]() | |
Crc16 * | m_crcImpl |
Mutex | m_sendLock |
Mutex protecting send. | |
Mutex | m_receiveLock |
Mutex protecting receive. | |
Additional Inherited Members |
Very basic transport to send/receive messages via UART.
UartTransport::UartTransport | ( | ARM_DRIVER_USART * | uartDrv | ) |
Constructor.
[in] | uartDrv | Cmsis uart. |
|
virtual |
Initialize CMSIS UART peripheral configuration structure with values specified in UartTransport constructor.
kErpcStatus_InitFailed | When UART init function failed. |
kErpcStatus_Success | When UART init function was executed successfully. |
|
protected |
Access structure of the USART Driver