dji_psdk_manager.hpp
Go to the documentation of this file.
void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
Implementation of psdk module for payload node.
ErrorCode::ErrorCodeType sendDataToPSDK(PayloadIndexType index, uint8_t *data, uint16_t len)
sending data from OSDK to PSDK
Definition: dji_psdk_manager.cpp:241
ErrorCode::ErrorCodeType getPSDKModuleIndex(const char *name, uint8_t &index)
get the index of psdk module, searched by name
Definition: dji_psdk_manager.cpp:114
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
ErrorCode::ErrorCodeType unsubscribePSDKCommonication(PayloadIndexType index)
Sample to disable the callback for PSDK commonication data, non-blocking.
Definition: dji_psdk_manager.cpp:221
ErrorCode::ErrorCodeType initPSDKModule(PayloadIndexType index, const char *name)
init the psdk module
Definition: dji_psdk_manager.cpp:70
PayloadIndexType
The payload Index of camera.
Definition: dji_payload_base.hpp:42
ErrorCode::ErrorCodeType subscribePSDKCommonication(PayloadIndexType index, PSDKModule::PSDKCommunicationUserCallback cb, UserData userData)
Sample to set the callback for PSDK commonication data, non-blocking.
Definition: dji_psdk_manager.cpp:210
ErrorCode::ErrorCodeType unsubscribeWidgetValues(PayloadIndexType index)
Sample to disable the callback for widget values, non-blocking.
Definition: dji_psdk_manager.cpp:190
ErrorCode::ErrorCodeType getPSDKModuleName(PayloadIndexType index, std::string &name)
get the name of psdk module, searched by index
Definition: dji_psdk_manager.cpp:103
ErrorCode::ErrorCodeType deinitPSDKModule(PayloadIndexType index)
deinit the psdk module In the deinit, the psdk module will set name to be defaultPSDKName and set ena...
Definition: dji_psdk_manager.cpp:84
void configureWidgetValueAsync(PayloadIndexType index, uint8_t widgetIndex, PSDKModule::PayloadWidgetType widgetType, int widgetValue, void(*UserCallBack)(ErrorCode::ErrorCodeType retCode, UserData userData), UserData userData)
Sample to configure the value, non-blocking.
Definition: dji_psdk_manager.cpp:164
VehicleCallBackHandler * getSubscribeWidgetValuesHandler(PayloadIndexType index)
used in internal to do suhscribing task for PSDK widget
Definition: dji_psdk_manager.cpp:200
The CallBackHandler struct allows users to encapsulate callbacks and data in one struct.
Definition: dji_vehicle_callback.hpp:83
ErrorCode::ErrorCodeType getMopClient(PayloadIndexType index, MopClient *&mopClient)
Get the mop client object of the target psdk module.
Definition: dji_psdk_manager.cpp:137
void deinitAllPSDKModule(void)
deinit all the psdk modules
Definition: dji_psdk_manager.cpp:96
ErrorCode::ErrorCodeType subscribePSDKWidgetValues(PayloadIndexType index, PSDKModule::PSDKWidgetValuesUserCallback cb, UserData userData)
Sample to set the callback for widget values, non-blocking.
Definition: dji_psdk_manager.cpp:179
Definition: dji_ack.cpp:38
VehicleCallBackHandler * getCommunicationHandler(PayloadIndexType index)
used in internal to do suhscribing task for PSDK commonication data
Definition: dji_psdk_manager.cpp:231
ErrorCode::ErrorCodeType getPSDKModuleEnable(PayloadIndexType index, bool &enable)
get the enable status of psdk module, searched by index
Definition: dji_psdk_manager.cpp:125
Class providing APIs & data structures for acting as a MOP client.
Definition: dji_mop_client.hpp:43
ErrorCode::ErrorCodeType configureWidgetValueSync(PayloadIndexType index, uint8_t widgetIndex, PSDKModule::PayloadWidgetType widgetType, int widgetValue, int timeout)
Sample to configure the value, blocking.
Definition: dji_psdk_manager.cpp:152