DJI_App.h
Go to the documentation of this file.
00001 
00012 #ifndef DJI_APP_H
00013 #define DJI_APP_H
00014 
00015 #include <stdint.h>
00016 
00017 #include "DJI_Link.h"
00018 #include "DJI_Type.h"
00019 
00020 #define MSG_ENABLE_FLAG_LEN 2
00021 
00022 //----------------------------------------------------------------------
00023 // App layer function
00024 //----------------------------------------------------------------------
00025 typedef struct
00026 {
00027   unsigned short sequence_number;
00028   unsigned char session_id : 5;
00029   unsigned char need_encrypt : 1;
00030   unsigned char reserve : 2;
00031 } req_id_t;
00032 
00033 #define EXC_DATA_SIZE (16u)
00034 #define SET_CMD_SIZE (2u)
00035 
00036 //----------------------------------------------------------------------
00037 // for cmd agency
00038 //----------------------------------------------------------------------
00039 #define REQ_TIME_OUT 0x0000
00040 #define REQ_REFUSE 0x0001
00041 #define CMD_RECIEVE 0x0002
00042 #define STATUS_CMD_EXECUTING 0x0003
00043 #define STATUS_CMD_EXE_FAIL 0x0004
00044 #define STATUS_CMD_EXE_SUCCESS 0x0005
00045 
00046 
00047 #endif // DJI_APP_H


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