9 #ifndef _EMBEDDED_RPC__SPIDEV_MASTER_TRANSPORT_H_ 10 #define _EMBEDDED_RPC__SPIDEV_MASTER_TRANSPORT_H_ 71 virtual erpc_status_t underlyingReceive(uint8_t *data, uint32_t size)
override;
82 virtual erpc_status_t underlyingSend(
const uint8_t *data, uint32_t size)
override;
89 #endif // _EMBEDDED_RPC__SPIDEV_MASTER_TRANSPORT_H_ Base class for framed transport layers.
Definition: erpc_framed_transport.hpp:56
enum _erpc_status erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:85
const char * m_spidev
Definition: erpc_spidev_master_transport.hpp:55
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
Definition: erpc_arbitrated_client_manager.hpp:25
SpidevMasterTransport(const char *spidev, uint32_t speed_Hz)
Constructor.
Definition: erpc_spidev_master_transport.cpp:87
virtual ~SpidevMasterTransport(void)
Destructor.
Definition: erpc_spidev_master_transport.cpp:92
int m_spidevHandle
Definition: erpc_spidev_master_transport.hpp:54
uint32_t m_speed_Hz
Definition: erpc_spidev_master_transport.hpp:56
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
erpc_status_t init(void)
Initialize SPI peripheral.
Definition: erpc_spidev_master_transport.cpp:107
Very basic transport to send/receive messages via SPIdev.
Definition: erpc_spidev_master_transport.hpp:30