10 #ifndef _EMBEDDED_RPC__DSPI_SLAVE_TRANSPORT_H_ 11 #define _EMBEDDED_RPC__DSPI_SLAVE_TRANSPORT_H_ 13 #include "erpc_config_internal.h" 94 virtual erpc_status_t underlyingReceive(uint8_t *data, uint32_t size)
override;
105 virtual erpc_status_t underlyingSend(
const uint8_t *data, uint32_t size)
override;
112 #endif // _EMBEDDED_RPC__DSPI_SLAVE_TRANSPORT_H_ DspiSlaveTransport(SPI_Type *spiBaseAddr, uint32_t baudRate, uint32_t srcClock_Hz)
Constructor.
Definition: erpc_dspi_slave_transport.cpp:97
void transfer_cb(void)
Function called from DSPI_SlaveUserCallback when SPI transfer is completed.
Definition: erpc_dspi_slave_transport.cpp:76
Base class for framed transport layers.
Definition: erpc_framed_transport.hpp:56
Very basic transport to send/receive messages via DSPI.
Definition: erpc_dspi_slave_transport.hpp:41
enum _erpc_status erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:85
uint32_t m_srcClock_Hz
Definition: erpc_dspi_slave_transport.hpp:75
uint32_t m_baudRate
Definition: erpc_dspi_slave_transport.hpp:74
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
SPI_Type * m_spiBaseAddr
Definition: erpc_dspi_slave_transport.hpp:73
Definition: erpc_arbitrated_client_manager.hpp:25
Semaphore m_txrxSemaphore
Definition: erpc_dspi_slave_transport.hpp:78
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 ~DspiSlaveTransport(void)
Destructor.
Definition: erpc_dspi_slave_transport.cpp:107
virtual erpc_status_t init(void)
Initialize DSPI peripheral configuration structure with values specified in DspiTransport constructor...
Definition: erpc_dspi_slave_transport.cpp:119
Simple semaphore class.
Definition: erpc_threading.h:442
bool m_isInited
Definition: erpc_dspi_slave_transport.hpp:76