Encoding/Message parsing features for DJI onboardSDK library. More...
Go to the source code of this file.
Defines | |
#define | _SDK_CALC_CRC_HEAD(_msg, _len) sdk_stream_crc16_calc((const unsigned char *)(_msg), _len) |
#define | _SDK_CALC_CRC_TAIL(_msg, _len) sdk_stream_crc32_calc((const unsigned char *)(_msg), _len) |
#define | _SDK_CRC_DATA_SIZE (4) |
#define | _SDK_CRC_HEAD_SIZE (2) |
#define | _SDK_FULL_DATA_SIZE_MIN (sizeof(DJI::onboardSDK::Header) + _SDK_CRC_DATA_SIZE) |
#define | _SDK_HEAD_DATA_LEN (sizeof(DJI::onboardSDK::Header) - 2) |
#define | _SDK_MAX_RECV_SIZE (BUFFER_SIZE) |
#define | _SDK_SOF ((unsigned char)(0xAA)) |
#define | _SDK_U16_SET(_addr, _val) (*((unsigned short *)(_addr)) = (_val)) |
#define | _SDK_U32_SET(_addr, _val) (*((unsigned int *)(_addr)) = (_val)) |
Functions | |
void | transformTwoByte (const char *pstr, unsigned char *pdata) |
Encoding/Message parsing features for DJI onboardSDK library.
Definition in file DJI_Codec.h.
#define _SDK_CALC_CRC_HEAD | ( | _msg, | |
_len | |||
) | sdk_stream_crc16_calc((const unsigned char *)(_msg), _len) |
Definition at line 31 of file DJI_Codec.h.
#define _SDK_CALC_CRC_TAIL | ( | _msg, | |
_len | |||
) | sdk_stream_crc32_calc((const unsigned char *)(_msg), _len) |
Definition at line 33 of file DJI_Codec.h.
#define _SDK_CRC_DATA_SIZE (4) |
Definition at line 24 of file DJI_Codec.h.
#define _SDK_CRC_HEAD_SIZE (2) |
Definition at line 23 of file DJI_Codec.h.
#define _SDK_FULL_DATA_SIZE_MIN (sizeof(DJI::onboardSDK::Header) + _SDK_CRC_DATA_SIZE) |
Definition at line 26 of file DJI_Codec.h.
#define _SDK_HEAD_DATA_LEN (sizeof(DJI::onboardSDK::Header) - 2) |
Definition at line 25 of file DJI_Codec.h.
#define _SDK_MAX_RECV_SIZE (BUFFER_SIZE) |
Definition at line 21 of file DJI_Codec.h.
#define _SDK_SOF ((unsigned char)(0xAA)) |
Definition at line 22 of file DJI_Codec.h.
#define _SDK_U16_SET | ( | _addr, | |
_val | |||
) | (*((unsigned short *)(_addr)) = (_val)) |
Definition at line 29 of file DJI_Codec.h.
#define _SDK_U32_SET | ( | _addr, | |
_val | |||
) | (*((unsigned int *)(_addr)) = (_val)) |
Definition at line 28 of file DJI_Codec.h.
void transformTwoByte | ( | const char * | pstr, |
unsigned char * | pdata | ||
) |
Definition at line 832 of file DJI_Codec.cpp.