gwenhywfar 5.12.0
msg_ipc.c File Reference
#include "msgio/msg_p.h"
#include "msgio/msg_ipc.h"
Include dependency graph for msg_ipc.c:

Go to the source code of this file.

Functions

void GWEN_IpcMsg_AdjustMsgSize (GWEN_MSG *msg)
uint16_t GWEN_IpcMsg_GetCode (const GWEN_MSG *msg)
uint32_t GWEN_IpcMsg_GetMsgId (const GWEN_MSG *msg)
uint32_t GWEN_IpcMsg_GetMsgSize (const GWEN_MSG *msg)
uint8_t GWEN_IpcMsg_GetProtoId (const GWEN_MSG *msg)
uint8_t GWEN_IpcMsg_GetProtoVersion (const GWEN_MSG *msg)
uint32_t GWEN_IpcMsg_GetRefMsgId (const GWEN_MSG *msg)
int GWEN_IpcMsg_IsMsgComplete (const GWEN_MSG *msg)
GWEN_MSGGWEN_IpcMsg_new (uint8_t protoId, uint8_t protoVer, uint16_t code, uint32_t msgId, uint32_t refMsgId, uint32_t payloadLen, const uint8_t *payload)

Function Documentation

◆ GWEN_IpcMsg_AdjustMsgSize()

void GWEN_IpcMsg_AdjustMsgSize ( GWEN_MSG * msg)

Definition at line 50 of file msg_ipc.c.

References GWEN_Msg_WriteUint32At(), and GWEN_MSGIPC_OFFS_SIZE.

Here is the call graph for this function:

◆ GWEN_IpcMsg_GetCode()

uint16_t GWEN_IpcMsg_GetCode ( const GWEN_MSG * msg)

Definition at line 95 of file msg_ipc.c.

References GWEN_Msg_GetUint16At(), and GWEN_MSGIPC_OFFS_CODE.

Here is the call graph for this function:

◆ GWEN_IpcMsg_GetMsgId()

uint32_t GWEN_IpcMsg_GetMsgId ( const GWEN_MSG * msg)

Definition at line 102 of file msg_ipc.c.

References GWEN_Msg_GetUint32At(), and GWEN_MSGIPC_OFFS_ID.

Here is the call graph for this function:

◆ GWEN_IpcMsg_GetMsgSize()

uint32_t GWEN_IpcMsg_GetMsgSize ( const GWEN_MSG * msg)

Definition at line 74 of file msg_ipc.c.

References GWEN_Msg_GetUint32At(), and GWEN_MSGIPC_OFFS_SIZE.

Referenced by _getBytesNeededForMessage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_IpcMsg_GetProtoId()

uint8_t GWEN_IpcMsg_GetProtoId ( const GWEN_MSG * msg)

Definition at line 81 of file msg_ipc.c.

References GWEN_Msg_GetUint8At(), and GWEN_MSGIPC_OFFS_PROTOID.

Here is the call graph for this function:

◆ GWEN_IpcMsg_GetProtoVersion()

uint8_t GWEN_IpcMsg_GetProtoVersion ( const GWEN_MSG * msg)

Definition at line 88 of file msg_ipc.c.

References GWEN_Msg_GetUint8At(), and GWEN_MSGIPC_OFFS_PROTOVER.

Here is the call graph for this function:

◆ GWEN_IpcMsg_GetRefMsgId()

uint32_t GWEN_IpcMsg_GetRefMsgId ( const GWEN_MSG * msg)

Definition at line 109 of file msg_ipc.c.

References GWEN_Msg_GetUint32At(), and GWEN_MSGIPC_OFFS_REFID.

Here is the call graph for this function:

◆ GWEN_IpcMsg_IsMsgComplete()

int GWEN_IpcMsg_IsMsgComplete ( const GWEN_MSG * msg)

Definition at line 58 of file msg_ipc.c.

References GWEN_Msg_GetUint32At(), and GWEN_MSGIPC_OFFS_SIZE.

Here is the call graph for this function:

◆ GWEN_IpcMsg_new()

GWEN_MSG * GWEN_IpcMsg_new ( uint8_t protoId,
uint8_t protoVer,
uint16_t code,
uint32_t msgId,
uint32_t refMsgId,
uint32_t payloadLen,
const uint8_t * payload )

Definition at line 22 of file msg_ipc.c.

References GWEN_Msg_AddBytes(), GWEN_Msg_AddUint16(), GWEN_Msg_AddUint32(), GWEN_Msg_AddUint8(), GWEN_Msg_new(), GWEN_MSGIPC_OFFS_PAYLOAD, and NULL.

Here is the call graph for this function: