36 #ifndef _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ 37 #define _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ 39 #include "erpc_config_internal.h" 171 #endif // _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ Abstract interface for transport layer.
Definition: erpc_transport.h:61
int32_t erpc_status_t
Type used for all status and error return values.
Definition: erpc_common.h:112
uint16_t m_messageSize
Size in bytes of the message, excluding the header.
Definition: erpc_framed_transport.h:125
Base class for framed transport layers.
Definition: erpc_framed_transport.h:80
virtual erpc_status_t receive(MessageBuffer *message)
Receives an entire message.
Definition: erpc_framed_transport.cpp:65
virtual void setCrc16(Crc16 *crcImpl)
This functions sets the CRC-16 implementation.
Definition: erpc_framed_transport.cpp:59
uint16_t m_crc
CRC-16 over the message data.
Definition: erpc_framed_transport.h:126
virtual ~FramedTransport(void)
Codec destructor.
Definition: erpc_framed_transport.cpp:57
Represents a memory buffer containing a message.
Definition: erpc_message_buffer.h:62
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:140
Definition: erpc_arbitrated_client_manager.h:51
FramedTransport(void)
Constructor.
Definition: erpc_framed_transport.cpp:47
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:55
Crc16 * m_crcImpl
Definition: erpc_framed_transport.h:137
Mutex m_receiveLock
Mutex protecting receive.
Definition: erpc_framed_transport.h:141
virtual erpc_status_t send(MessageBuffer *message)
Function to send prepared message.
Definition: erpc_framed_transport.cpp:107
Mutex.
Definition: erpc_threading.h:285