eRPC API Reference  Rev. 1.12.0
NXP Semiconductors
StaticMessageBufferFactory Class Reference

Static Message buffer factory. More...

+ Inheritance diagram for StaticMessageBufferFactory:
+ Collaboration diagram for StaticMessageBufferFactory:

Public Member Functions

 StaticMessageBufferFactory (void)
 Constructor.
 
virtual ~StaticMessageBufferFactory (void)
 CodecFactory destructor.
 
virtual MessageBuffer create (void)
 This function creates new message buffer. More...
 
virtual void dispose (MessageBuffer *buf)
 This function disposes message buffer. More...
 
- Public Member Functions inherited from erpc::MessageBufferFactory
 MessageBufferFactory (void)
 Constructor. More...
 
virtual ~MessageBufferFactory (void)
 MessageBufferFactory destructor.
 
MessageBuffer create (uint8_t reserveHeaderSize)
 This function creates new message buffer with reserved bytes at the beginning. More...
 
virtual bool createServerBuffer (void)
 This function informs server if it has to create buffer for received message. More...
 
virtual erpc_status_t prepareServerBufferForSend (MessageBuffer &message, uint8_t reserveHeaderSize=0)
 This function is preparing output buffer on server side. More...
 

Protected Attributes

uint8_t m_freeBufferBitmap [(ERPC_DEFAULT_BUFFERS_COUNT >> 3U)+(ERPC_DEFAULT_BUFFERS_COUNT%8?1U:0U)]
 
uint64_t m_buffers [ERPC_DEFAULT_BUFFERS_COUNT][ERPC_BUFFER_SIZE_UINT64]
 Static buffers.
 
Semaphore m_semaphore
 

Detailed Description

Static Message buffer factory.

Member Function Documentation

virtual MessageBuffer StaticMessageBufferFactory::create ( void  )
inlinevirtual

This function creates new message buffer.

Returns
MessageBuffer New created MessageBuffer.

Implements erpc::MessageBufferFactory.

virtual void StaticMessageBufferFactory::dispose ( MessageBuffer buf)
inlinevirtual

This function disposes message buffer.

Parameters
[in]bufMessageBuffer to dispose.

Implements erpc::MessageBufferFactory.

Member Data Documentation

uint8_t StaticMessageBufferFactory::m_freeBufferBitmap[(ERPC_DEFAULT_BUFFERS_COUNT >> 3U)+(ERPC_DEFAULT_BUFFERS_COUNT%8?1U:0U)]
protected

Bitmap representing which buffers are in use. A bit value of 1 means free and 0 means in use.

Semaphore StaticMessageBufferFactory::m_semaphore
protected

Semaphore.


The documentation for this class was generated from the following file: