11 #ifndef _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ 12 #define _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ 14 #include "erpc_config_internal.h" 20 #if !ERPC_THREADS_IS(NONE) 130 #if !ERPC_THREADS_IS(NONE) 188 #endif // _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ Abstract interface for transport layer.
Definition: erpc_transport.hpp:36
uint16_t m_crcBody
CRC-16 over the message data.
Definition: erpc_framed_transport.hpp:64
uint16_t m_messageSize
Size in bytes of the message, excluding the header.
Definition: erpc_framed_transport.hpp:63
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
virtual ~FramedTransport(void)
FramedTransport destructor.
Definition: erpc_framed_transport.cpp:34
virtual erpc_status_t send(MessageBuffer *message) override
Function to send prepared message.
Definition: erpc_framed_transport.cpp:135
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
Represents a memory buffer containing a message.
Definition: erpc_message_buffer.hpp:37
Mutex m_sendLock
Mutex protecting send.
Definition: erpc_framed_transport.hpp:131
Definition: erpc_arbitrated_client_manager.hpp:25
FramedTransport(void)
Constructor.
Definition: erpc_framed_transport.cpp:25
virtual Crc16 * getCrc16(void) override
This functions gets the CRC-16 object.
Definition: erpc_framed_transport.cpp:48
Class for compute crc16.
Definition: erpc_crc16.hpp:29
uint16_t m_crcHeader
CRC-16 over this header structure data.
Definition: erpc_framed_transport.hpp:62
virtual uint8_t reserveHeaderSize(void) override
Size of data placed in MessageBuffer before serializing eRPC data.
Definition: erpc_framed_transport.cpp:36
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
Crc16 * m_crcImpl
Definition: erpc_framed_transport.hpp:128
virtual void setCrc16(Crc16 *crcImpl) override
This functions sets the CRC-16 implementation.
Definition: erpc_framed_transport.cpp:42
Mutex m_receiveLock
Mutex protecting receive.
Definition: erpc_framed_transport.hpp:132
virtual erpc_status_t receive(MessageBuffer *message) override
Receives an entire message.
Definition: erpc_framed_transport.cpp:53
Mutex.
Definition: erpc_threading.h:339