eRPC API Reference
Rev. 1.12.0
NXP Semiconductors
|
Abstract interface for transport layer. More...
#include <erpc_transport.hpp>
Public Member Functions | |
Transport (void) | |
Constructor. | |
virtual | ~Transport (void) |
Transport destructor. | |
virtual uint8_t | reserveHeaderSize (void) |
Size of data placed in MessageBuffer before serializing eRPC data. More... | |
virtual erpc_status_t | receive (MessageBuffer *message)=0 |
Prototype for receiving message. More... | |
virtual erpc_status_t | send (MessageBuffer *message)=0 |
Prototype for send message. More... | |
virtual bool | hasMessage (void) |
Poll for an incoming message. More... | |
virtual void | setCrc16 (Crc16 *crcImpl) |
This functions sets the CRC-16 implementation. More... | |
virtual Crc16 * | getCrc16 (void) |
This functions gets the CRC-16 object. More... | |
Abstract interface for transport layer.
|
inlinevirtual |
Size of data placed in MessageBuffer before serializing eRPC data.
Reimplemented in erpc::FramedTransport, and erpc::TransportArbitrator.
|
pure virtual |
Prototype for receiving message.
Each transport layer need define this function.
[out] | message | Will return pointer to received message buffer. |
Implemented in erpc::MUTransport, erpc::RPMsgTransport, erpc::FramedTransport, erpc::RPMsgRTOSTransport, erpc::TransportArbitrator, erpc::RPMsgLinuxTransport, and erpc::InterThreadBufferTransport.
|
pure virtual |
Prototype for send message.
Each transport layer need define this function.
[in] | message | Pass message buffer to send. |
Implemented in erpc::MUTransport, erpc::RPMsgTransport, erpc::FramedTransport, erpc::RPMsgRTOSTransport, erpc::TransportArbitrator, erpc::RPMsgLinuxTransport, and erpc::InterThreadBufferTransport.
|
inlinevirtual |
Poll for an incoming message.
This function should return true if are some messages to process by server, the return value should be tested before calling receive function to avoid waiting for a new message (receive can be implemented as blocking function).
True | when a message is available to process, else false. |
Reimplemented in erpc::MUTransport, erpc::RPMsgTransport, erpc::RPMsgRTOSTransport, and erpc::TransportArbitrator.
|
inlinevirtual |
This functions sets the CRC-16 implementation.
[in] | crcImpl | Object containing crc-16 compute function. |
Reimplemented in erpc::RPMsgTransport, erpc::RPMsgRTOSTransport, erpc::FramedTransport, and erpc::TransportArbitrator.
|
inlinevirtual |
This functions gets the CRC-16 object.
Reimplemented in erpc::RPMsgTransport, erpc::RPMsgRTOSTransport, erpc::FramedTransport, and erpc::TransportArbitrator.