APIs for Payload-Onboard SDK Communication. More...

#include <dji_payload_device.hpp>

Public Member Functions

 PayloadDevice (Vehicle *vehicle=0)
 
Vehicle * getVehicle () const
 
void setVehicle (Vehicle *value)
 
void sendDataToPSDK (uint8_t *data, uint16_t len)
 sending data from OSDK to PSDK More...
 
void setFromPSDKCallback (VehicleCallBack callback, UserData userData=0)
 set callback to receive data from PSDK More...
 

Static Public Member Functions

static void getDataFromPSDKCallback (Vehicle *vehiclePtr, RecvContainer recvFrame, UserData userData)
 

Public Attributes

VehicleCallBackHandler fromPSDKHandler
 

Static Public Attributes

static const uint16_t MAX_SIZE_OF_PACKAGE = 255
 

Detailed Description

APIs for Payload-Onboard SDK Communication.

This class implements the Onboard SDK side of Data Transparent Transmission functionality. You must implement APIs available in the Payload SDK to have full functionality on both directions of the pipeline.

Deprecated:
This class is deprecated and replaced by DJI::OSDK::PSDKManager.

Member Function Documentation

◆ sendDataToPSDK()

void PayloadDevice::sendDataToPSDK ( uint8_t *  data,
uint16_t  len 
)

sending data from OSDK to PSDK

Supported Platforms : M210V2, M300
Parameters
datasent data
lenlength of data

◆ setFromPSDKCallback()

void PayloadDevice::setFromPSDKCallback ( VehicleCallBack  callback,
UserData  userData = 0 
)

set callback to receive data from PSDK

Supported Platforms : M210V2, M300
Parameters
callbackcallback to receive data
userDatauser data to be passed in callback

The documentation for this class was generated from the following files: