Defines | Functions
DJI_Codec.h File Reference

Encoding/Message parsing features for DJI onboardSDK library. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <memory>
#include "DJI_Type.h"
Include dependency graph for DJI_Codec.h:
This graph shows which files directly or indirectly include this file:

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)

Detailed Description

Encoding/Message parsing features for DJI onboardSDK library.

Version:
3.1.7
Date:
July 1st, 2016

Definition in file DJI_Codec.h.


Define Documentation

#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.

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.

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.


Function Documentation

void transformTwoByte ( const char *  pstr,
unsigned char *  pdata 
)

Definition at line 832 of file DJI_Codec.cpp.



dji_sdk_lib
Author(s):
autogenerated on Thu Jun 6 2019 17:55:25