dji_legacy_linker.cpp File Reference

Legacy adapting in linker for OSDK 3.9. More...

#include "dji_legacy_linker.hpp"
#include "dji_vehicle.hpp"
#include "dji_linker.hpp"
#include "osdk_device_id.h"
#include "dji_internal_command.hpp"
Include dependency graph for dji_legacy_linker.cpp:

Macros

#define MAX_PARAMETER_VALUE_LENGTH   8
 

Typedefs

typedef struct legacyAdaptingData legacyAdaptingData
 
typedef struct CmdListData CmdListData
 

Functions

RecvContainer recvFrameAdapting (const T_CmdInfo &cmdInfo, const uint8_t *cmdData)
 
E_OsdkStat legacyAdaptingRegisterCB (struct _CommandHandle *cmdHandle, const T_CmdInfo *cmdInfo, const uint8_t *cmdData, void *userData)
 
void legacyAdaptingAsyncCB (const T_CmdInfo *cmdInfo, const uint8_t *cmdData, void *userData, E_OsdkStat cb_type)
 

Variables

CmdListData cmdListData []
 

Detailed Description

Legacy adapting in linker for OSDK 3.9.

Version
4.0.0
Date
November 2019

@Copyright (c) 2016-2017 DJI

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Variable Documentation

◆ cmdListData

CmdListData cmdListData[]
Initial value:
= {
{{0}, {0, 0, OpenProtocolCMD::CMDSet::Broadcast::subscribe[0], OpenProtocolCMD::CMDSet::Broadcast::subscribe[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::Broadcast::broadcast[0], OpenProtocolCMD::CMDSet::Broadcast::broadcast[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::Broadcast::fromMobile[0], OpenProtocolCMD::CMDSet::Broadcast::fromMobile[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::Broadcast::fromPayload[0], OpenProtocolCMD::CMDSet::Broadcast::fromPayload[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::Broadcast::waypoint[0], OpenProtocolCMD::CMDSet::Broadcast::waypoint[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEAGPSGSA[0], OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEAGPSGSA[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEAGPSRMC[0], OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEAGPSRMC[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEARTKGSA[0], OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEARTKGSA[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEARTKRMC[0], OpenProtocolCMD::CMDSet::HardwareSync::ppsNMEARTKRMC[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::HardwareSync::ppsUTCTime[0], OpenProtocolCMD::CMDSet::HardwareSync::ppsUTCTime[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::HardwareSync::ppsUTCFCTimeRef[0], OpenProtocolCMD::CMDSet::HardwareSync::ppsUTCFCTimeRef[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
{{0}, {0, 0, OpenProtocolCMD::CMDSet::HardwareSync::ppsSource[0], OpenProtocolCMD::CMDSet::HardwareSync::ppsSource[1], MASK_HOST_XXXXXX_SET_ID, malloc(sizeof(legacyAdaptingData)), NULL}},
}