Synergy Software Package User's Manual

#include <sf_message_api.h>

Data Fields

ssp_err_t(* open )(sf_message_ctrl_t *const p_ctrl, sf_message_cfg_t const *const p_cfg)
 
ssp_err_t(* close )(sf_message_ctrl_t *const p_ctrl)
 
ssp_err_t(* bufferAcquire )(sf_message_ctrl_t const *const p_ctrl, sf_message_header_t **pp_buffer, sf_message_acquire_cfg_t const *const p_acquire_cfg, uint32_t const wait_option)
 
ssp_err_t(* bufferRelease )(sf_message_ctrl_t *const p_ctrl, sf_message_header_t *const p_buffer, sf_message_release_option_t const option)
 
ssp_err_t(* post )(sf_message_ctrl_t *const p_ctrl, sf_message_header_t const *const p_buffer, sf_message_post_cfg_t const *const p_post_cfg, sf_message_post_err_t *const p_post_err, uint32_t const wait_option)
 
ssp_err_t(* pend )(sf_message_ctrl_t const *const p_ctrl, TX_QUEUE const *const p_queue, sf_message_header_t **pp_buffer, uint32_t const wait_option)
 
ssp_err_t(* versionGet )(ssp_version_t *const p_version)
 

Detailed Description

Messaging Framework API structure. Implementations will use the following API.

Field Documentation

◆ bufferAcquire

ssp_err_t(* sf_message_api_t::bufferAcquire) (sf_message_ctrl_t const *const p_ctrl, sf_message_header_t **pp_buffer, sf_message_acquire_cfg_t const *const p_acquire_cfg, uint32_t const wait_option)

Acquire buffer for message passing from the block.

Implemented as
Parameters
[in]p_ctrlPointer to the messaging control block
[in,out]pp_bufferPointer to the pointer to the allocated buffer memory
[in]p_acquire_cfgPointer to the buffer acquisition configuration
[in]wait_optionWait option (TX_NO_WAIT, TX_WAIT_FOREVER or numerical values)

◆ bufferRelease

ssp_err_t(* sf_message_api_t::bufferRelease) (sf_message_ctrl_t *const p_ctrl, sf_message_header_t *const p_buffer, sf_message_release_option_t const option)

Release buffer obtained from SF_MESSAGE_BufferAcquire().

Implemented as
Parameters
[in]p_ctrlPointer to the messaging control block
[in]p_bufferPointer to the buffer allocated by SF_MESSAGE_BufferAcquire()
[in]optionBuffer release option (SF_MESSAGE_RELEASE_OPTION_NONE, SF_MESSAGE_RELEASE_OPTION_ACK, SF_MESSAGE_RELEASE_OPTION_NAK, SF_MESSAGE_RELEASE_OPTION_FORCED_RELEASE)

◆ close

ssp_err_t(* sf_message_api_t::close) (sf_message_ctrl_t *const p_ctrl)

Finalize message framework.

Implemented as
Parameters
[in,out]p_ctrlPointer to the messaging control block

◆ open

ssp_err_t(* sf_message_api_t::open) (sf_message_ctrl_t *const p_ctrl, sf_message_cfg_t const *const p_cfg)

Initialize message framework. Initiate the messaging framework control block, configure the work memory corresponding to the configuration parameters.

Implemented as
Parameters
[in,out]p_ctrlPointer to the messaging control block
[in]p_cfgPointer to configuration structure

◆ pend

ssp_err_t(* sf_message_api_t::pend) (sf_message_ctrl_t const *const p_ctrl, TX_QUEUE const *const p_queue, sf_message_header_t **pp_buffer, uint32_t const wait_option)

Pend message.

Implemented as
Parameters
[in]p_ctrlPointer to the messaging control block
[in]p_queuePointer to a threadX message queue object
[in,out]pp_bufferPointer to the pointer to the buffer where message is stored.
[in]wait_optionWait option (TX_NO_WAIT, TX_WAIT_FOREVER or numerical values)

◆ post

ssp_err_t(* sf_message_api_t::post) (sf_message_ctrl_t *const p_ctrl, sf_message_header_t const *const p_buffer, sf_message_post_cfg_t const *const p_post_cfg, sf_message_post_err_t *const p_post_err, uint32_t const wait_option)

Post message to the subscribers.

Implemented as
Parameters
[in]p_ctrlPointer to the messaging control block
[in]p_bufferPointer to the buffer allocated by SF_MESSAGE_BufferAcquire()
[in]p_post_cfgPointer to the message post configuration
[in]wait_optionWait option (TX_NO_WAIT, TX_WAIT_FOREVER or numerical values)

◆ versionGet

ssp_err_t(* sf_message_api_t::versionGet) (ssp_version_t *const p_version)

Get the version of the messaging framework.

Implemented as
Parameters
[in]p_versionPointer to the memory where to store the version number

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