LibJuno 1.0.1
LibJuno is a lightweight C11 library designed specifically for embedded systems.
Loading...
Searching...
No Matches
engine_tlm_msg.c File Reference
Include dependency graph for engine_tlm_msg.c:

Macros

#define ENGINE_TLM_MSG_PIPE_ASSERT_API(ptArray, ...)   if(ptArray->ptApi != &gtEngineTlmMsgPipeApi) { __VA_ARGS__; }
 Asserts the api is for the pipe.
 

Functions

static JUNO_STATUS_T EngineTlmMsg_Copy (JUNO_POINTER_T tDest, const JUNO_POINTER_T tSrc)
 
static JUNO_STATUS_T EngineTlmMsg_Reset (JUNO_POINTER_T tPointer)
 
static JUNO_STATUS_T SetAt (JUNO_DS_ARRAY_ROOT_T *ptArray, JUNO_POINTER_T tItem, size_t iIndex)
 Set the value at an index.
 
static JUNO_RESULT_POINTER_T GetAt (JUNO_DS_ARRAY_ROOT_T *ptArray, size_t iIndex)
 Get the value at an index.
 
static JUNO_STATUS_T RemoveAt (JUNO_DS_ARRAY_ROOT_T *ptArray, size_t iIndex)
 Remove a value at an index.
 
JUNO_STATUS_T EngineTlmMsg_ArrayInit (ENGINE_TLM_MSG_ARRAY_T *ptEngineTlmMsgPipe, ENGINE_TLM_MSG_T *ptArrEngineTlmMsgBuffer, size_t iCapacity, JUNO_FAILURE_HANDLER_T pfcnFailureHdlr, JUNO_USER_DATA_T *pvUserData)
 

Variables

const JUNO_POINTER_API_T gtEngineTlmMsgPointerApi
 
static const JUNO_DS_ARRAY_API_T gtEngineTlmMsgPipeApi
 

Macro Definition Documentation

◆ ENGINE_TLM_MSG_PIPE_ASSERT_API

#define ENGINE_TLM_MSG_PIPE_ASSERT_API (   ptArray,
  ... 
)    if(ptArray->ptApi != &gtEngineTlmMsgPipeApi) { __VA_ARGS__; }

Asserts the api is for the pipe.

Function Documentation

◆ EngineTlmMsg_ArrayInit()

JUNO_STATUS_T EngineTlmMsg_ArrayInit ( ENGINE_TLM_MSG_ARRAY_T *  ptEngineTlmMsgPipe,
ENGINE_TLM_MSG_T ptArrEngineTlmMsgBuffer,
size_t  iCapacity,
JUNO_FAILURE_HANDLER_T  pfcnFailureHdlr,
JUNO_USER_DATA_T pvUserData 
)

◆ EngineTlmMsg_Copy()

static JUNO_STATUS_T EngineTlmMsg_Copy ( JUNO_POINTER_T  tDest,
const JUNO_POINTER_T  tSrc 
)
static

◆ EngineTlmMsg_Reset()

static JUNO_STATUS_T EngineTlmMsg_Reset ( JUNO_POINTER_T  tPointer)
static

◆ GetAt()

static JUNO_RESULT_POINTER_T GetAt ( JUNO_DS_ARRAY_ROOT_T ptArray,
size_t  iIndex 
)
static

Get the value at an index.

◆ RemoveAt()

static JUNO_STATUS_T RemoveAt ( JUNO_DS_ARRAY_ROOT_T ptArray,
size_t  iIndex 
)
static

Remove a value at an index.

◆ SetAt()

static JUNO_STATUS_T SetAt ( JUNO_DS_ARRAY_ROOT_T ptArray,
JUNO_POINTER_T  tItem,
size_t  iIndex 
)
static

Set the value at an index.

Variable Documentation

◆ gtEngineTlmMsgPipeApi

const JUNO_DS_ARRAY_API_T gtEngineTlmMsgPipeApi
static
Initial value:
=
{
}
static JUNO_STATUS_T SetAt(JUNO_DS_ARRAY_ROOT_T *ptArray, JUNO_POINTER_T tItem, size_t iIndex)
Set the value at an index.
Definition engine_tlm_msg.c:86
static JUNO_STATUS_T RemoveAt(JUNO_DS_ARRAY_ROOT_T *ptArray, size_t iIndex)
Remove a value at an index.
Definition engine_tlm_msg.c:131
static JUNO_RESULT_POINTER_T GetAt(JUNO_DS_ARRAY_ROOT_T *ptArray, size_t iIndex)
Get the value at an index.
Definition engine_tlm_msg.c:108

◆ gtEngineTlmMsgPointerApi

const JUNO_POINTER_API_T gtEngineTlmMsgPointerApi
Initial value:
=
{
}
static JUNO_STATUS_T EngineTlmMsg_Copy(JUNO_POINTER_T tDest, const JUNO_POINTER_T tSrc)
Definition engine_tlm_msg.c:47
static JUNO_STATUS_T EngineTlmMsg_Reset(JUNO_POINTER_T tPointer)
Definition engine_tlm_msg.c:60