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) 122 #if !ERPC_THREADS_IS(NONE) 154 #endif // _EMBEDDED_RPC__FRAMED_TRANSPORT_H_ Abstract interface for transport layer.
Definition: erpc_transport.hpp:36
uint16_t m_messageSize
Size in bytes of the message, excluding the header.
Definition: erpc_framed_transport.hpp:101
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
uint16_t m_crc
CRC-16 over the message data.
Definition: erpc_framed_transport.hpp:102
virtual ~FramedTransport(void)
FramedTransport destructor.
Definition: erpc_framed_transport.cpp:35
virtual erpc_status_t send(MessageBuffer *message) override
Function to send prepared message.
Definition: erpc_framed_transport.cpp:109
Represents a memory buffer containing a message.
Definition: erpc_message_buffer.hpp:37
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.hpp:123
Definition: erpc_arbitrated_client_manager.hpp:25
FramedTransport(void)
Constructor.
Definition: erpc_framed_transport.cpp:25
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.hpp:29
virtual Crc16 * getCrc16() override
This functions gets the CRC-16 object.
Definition: erpc_framed_transport.cpp:43
Crc16 * m_crcImpl
Definition: erpc_framed_transport.hpp:120
virtual void setCrc16(Crc16 *crcImpl) override
This functions sets the CRC-16 implementation.
Definition: erpc_framed_transport.cpp:37
Mutex m_receiveLock
Mutex protecting receive.
Definition: erpc_framed_transport.hpp:124
virtual erpc_status_t receive(MessageBuffer *message) override
Receives an entire message.
Definition: erpc_framed_transport.cpp:48
Mutex.
Definition: erpc_threading.h:338