思澈科技软件开发工具包  2.20

data service message structure type More...

#include <data_service.h>

Data Fields

uint16_t src_cid
 
uint16_t dst_cid
 
uint16_t msg_id
 
uint16_t len
 
uint32_t no_free: 1
 
uint32_t reserved: 31
 
uint8_t body [(12)]
 

Detailed Description

data service message structure type

Field Documentation

◆ body

uint8_t data_msg_t::body[(12)]

Saving whole short msg body, which length <= SHORT_DATA_MSG_BODY_THRESHOLD. For long msg body which length > SHORT_DATA_MSG_BODY_THRESHOLD, we'll allocate a memroy from heap and save a pointer here.

◆ len

uint16_t data_msg_t::len

Parameter length

◆ msg_id

uint16_t data_msg_t::msg_id

Message ID, see MSG_SERVICE_XXX

◆ no_free

uint32_t data_msg_t::no_free

1: no need to free memory of long msg, 0: need to free memory of long msg


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