10 #ifndef _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ 11 #define _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ 13 #include "erpc_config_internal.h" 145 #endif // _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ Abstract interface for transport layer.
Definition: erpc_transport.h:35
int32_t erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:86
uint16_t m_messageSize
Size in bytes of the message, excluding the header.
Definition: erpc_framed_transport.h:99
Base class for framed transport layers.
Definition: erpc_framed_transport.h:54
virtual erpc_status_t receive(MessageBuffer *message)
Receives an entire message.
Definition: erpc_framed_transport.cpp:39
virtual void setCrc16(Crc16 *crcImpl)
This functions sets the CRC-16 implementation.
Definition: erpc_framed_transport.cpp:33
uint16_t m_crc
CRC-16 over the message data.
Definition: erpc_framed_transport.h:100
virtual ~FramedTransport(void)
Codec destructor.
Definition: erpc_framed_transport.cpp:31
Represents a memory buffer containing a message.
Definition: erpc_message_buffer.h:36
virtual erpc_status_t underlyingReceive(uint8_t *data, uint32_t size)=0
Subclasses must implement this function to receive data.
Mutex m_sendLock
Mutex protecting send.
Definition: erpc_framed_transport.h:114
Definition: erpc_arbitrated_client_manager.h:25
FramedTransport(void)
Constructor.
Definition: erpc_framed_transport.cpp:21
virtual erpc_status_t underlyingSend(const uint8_t *data, uint32_t size)=0
Subclasses must implement this function to send data.
Class for compute crc16.
Definition: erpc_crc16.h:29
Crc16 * m_crcImpl
Definition: erpc_framed_transport.h:111
Mutex m_receiveLock
Mutex protecting receive.
Definition: erpc_framed_transport.h:115
virtual erpc_status_t send(MessageBuffer *message)
Function to send prepared message.
Definition: erpc_framed_transport.cpp:81
Mutex.
Definition: erpc_threading.h:259