gwenhywfar  5.11.2beta
Functions
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

uint16_t GWEN_IpcMsg_GetCode (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)
 
int GWEN_IpcMsg_IsMsgComplete (const GWEN_MSG *msg)
 
GWEN_MSGGWEN_IpcMsg_new (uint8_t protoId, uint8_t protoVer, uint16_t code, uint32_t payloadLen, const uint8_t *payload)
 

Function Documentation

◆ GWEN_IpcMsg_GetCode()

uint16_t GWEN_IpcMsg_GetCode ( const GWEN_MSG msg)

Definition at line 104 of file msg_ipc.c.

References GWEN_MSGIPC_OFFS_CODE, and GWEN_MSGIPC_OFFS_PAYLOAD.

◆ GWEN_IpcMsg_GetMsgSize()

uint32_t GWEN_IpcMsg_GetMsgSize ( const GWEN_MSG msg)

Definition at line 72 of file msg_ipc.c.

References GWEN_MSGIPC_OFFS_SIZE.

Referenced by _getBytesNeededForMessage().

Here is the caller graph for this function:

◆ GWEN_IpcMsg_GetProtoId()

uint8_t GWEN_IpcMsg_GetProtoId ( const GWEN_MSG msg)

Definition at line 86 of file msg_ipc.c.

References GWEN_MSGIPC_OFFS_PAYLOAD, and GWEN_MSGIPC_OFFS_PROTOID.

◆ GWEN_IpcMsg_GetProtoVersion()

uint8_t GWEN_IpcMsg_GetProtoVersion ( const GWEN_MSG msg)

Definition at line 95 of file msg_ipc.c.

References GWEN_MSGIPC_OFFS_PAYLOAD, and GWEN_MSGIPC_OFFS_PROTOVER.

◆ GWEN_IpcMsg_IsMsgComplete()

int GWEN_IpcMsg_IsMsgComplete ( const GWEN_MSG msg)

Definition at line 53 of file msg_ipc.c.

References GWEN_MSGIPC_OFFS_SIZE.

◆ GWEN_IpcMsg_new()

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

Definition at line 22 of file msg_ipc.c.

References GWEN_Msg_new(), GWEN_MSGIPC_OFFS_CODE, GWEN_MSGIPC_OFFS_PAYLOAD, GWEN_MSGIPC_OFFS_PROTOID, GWEN_MSGIPC_OFFS_PROTOVER, GWEN_MSGIPC_OFFS_SIZE, and NULL.

Here is the call graph for this function: