10 #ifndef _EMBEDDED_RPC__UART_TRANSPORT_H_ 11 #define _EMBEDDED_RPC__UART_TRANSPORT_H_ 13 #include "erpc_config_internal.h" 16 #if !ERPC_THREADS_IS(NONE) 22 #include "Driver_USART.h" 81 #if !ERPC_THREADS_IS(NONE) 98 virtual erpc_status_t underlyingReceive(uint8_t *data, uint32_t size)
override;
108 virtual erpc_status_t underlyingSend(
const uint8_t *data, uint32_t size)
override;
115 #endif // _EMBEDDED_RPC__UART_TRANSPORT_H_ ARM_DRIVER_USART * m_uartDrv
Definition: erpc_uart_cmsis_transport.hpp:80
Base class for framed transport layers.
Definition: erpc_framed_transport.hpp:56
void tx_cb(void)
Function called from ARM_USART_SignalEvent when ARM_USART_EVENT_SEND_COMPLETE event is asserted...
Definition: erpc_uart_cmsis_transport.cpp:44
enum _erpc_status erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:85
Semaphore m_rxSemaphore
Definition: erpc_uart_cmsis_transport.hpp:82
Semaphore m_txSemaphore
Definition: erpc_uart_cmsis_transport.hpp:83
UartTransport(ARM_DRIVER_USART *uartDrv)
Constructor.
Definition: erpc_uart_cmsis_transport.cpp:29
virtual erpc_status_t underlyingReceive(MessageBuffer *message, uint32_t size, uint32_t offset)
Adds ability to framed transport to overwrite MessageBuffer when receiving data.
Definition: erpc_framed_transport.cpp:177
virtual ~UartTransport(void)
Destructor.
Definition: erpc_uart_cmsis_transport.cpp:39
Definition: erpc_arbitrated_client_manager.hpp:25
void rx_cb(void)
Function called from ARM_USART_SignalEvent when ARM_USART_EVENT_RECEIVE_COMPLETE event is asserted...
Definition: erpc_uart_cmsis_transport.cpp:53
virtual erpc_status_t underlyingSend(MessageBuffer *message, uint32_t size, uint32_t offset)
Adds ability to framed transport to overwrite MessageBuffer when sending data.
Definition: erpc_framed_transport.cpp:170
virtual erpc_status_t init(void)
Initialize CMSIS UART peripheral configuration structure with values specified in UartTransport const...
Definition: erpc_uart_cmsis_transport.cpp:78
Very basic transport to send/receive messages via UART.
Definition: erpc_uart_cmsis_transport.hpp:41
Simple semaphore class.
Definition: erpc_threading.h:442