标题: 请问这几个消息格式有什么区别? [打印本页] 作者: 兔子 时间: 2021-9-15 15:34 标题: 请问这几个消息格式有什么区别? typedef struct
{
uint8 frameCtrl[2]; // frame control bytes 00-01
uint8 seqNum; // sequence_number 02
uint8 panID[2]; // PAN ID 03-04
uint8 destAddr[ADDR_BYTE_SIZE_L]; // 05-12 using 64 bit addresses
uint8 sourceAddr[ADDR_BYTE_SIZE_L]; // 13-20 using 64 bit addresses
uint8 messageData[MAX_USER_PAYLOAD_STRING_LL] ; // 22-124 (application data and any user payload)
uint8 fcs[2] ; // 125-126 we allow space for the CRC as it is logically part of the message. However ScenSor TX calculates and adds these bytes.
} srd_msg_dlsl ;
typedef struct
{
uint8 frameCtrl[2]; // frame control bytes 00-01
uint8 seqNum; // sequence_number 02
uint8 panID[2]; // PAN ID 03-04
uint8 destAddr[ADDR_BYTE_SIZE_S]; // 05-06
uint8 sourceAddr[ADDR_BYTE_SIZE_S]; // 07-08
uint8 messageData[MAX_USER_PAYLOAD_STRING_SS] ; // 09-124 (application data and any user payload)
uint8 fcs[2] ; // 125-126 we allow space for the CRC as it is logically part of the message. However ScenSor TX calculates and adds these bytes.
} srd_msg_dsss ;