![]() |
DJI Payload SDK
1.5.0
|
This file provides the API functions for handling the transparent data transmission between a mobile app (ground) and user's payload via PSDK port, data display of the floating window on "DJI Pilot" app and widgets set & get. More...
Functions | |
static E_PsdkStat | AppFuncCmd_TT_AppToLoad (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle transparent data transmission from APP to load. More... | |
static E_PsdkStat | AppFuncCmd_GetWidgetListLength (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Widget List Length Command. More... | |
static E_PsdkStat | AppFuncCmd_GetWidgetListValue (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Widget List Value Command. More... | |
static E_PsdkStat | AppFuncCmd_GetWidgetGroupCount (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Widget Group Count Command. More... | |
static E_PsdkStat | AppFuncCmd_GetWidgetGroupValue (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Widget Group Value Command. More... | |
static E_PsdkStat | AppFuncCmd_SetWidgetValue (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Set Widget Value Command. More... | |
static E_PsdkStat | AppFuncCmd_GetTextInputBoxParam (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData) |
Handle Get Text Input Box Param Command. More... | |
E_PsdkStat | PsdkAppFunc_Init (T_PsdkUpper *psdkUpper) |
Initialize the PSDK mobile APP integration functionality. More... | |
E_PsdkStat | PsdkAppFunc_TransferToApp (T_PsdkUpper *psdkUpper, const uint8_t *pSendData, uint16_t needSendLen, uint16_t *pRealSendLen) |
Transparently send data to mobile app. More... | |
E_PsdkStat | PsdkAppFunc_PushMsgToFloatingWindow (T_PsdkUpper *psdkUpper, const char *msg) |
Send a string to floating window in DJI pilot APP. More... | |
E_PsdkStat | PsdkAppFunc_SetWidgetList (T_PsdkUpper *psdkUpper, const T_PsdkAppFuncWidgetListItem *widgetList, uint8_t widgetItemCount) |
Register the Widget List from user. More... | |
E_PsdkStat | PsdkAppFunc_SetReceiveFromAppCallback (T_PsdkUpper *psdkUpper, ReceiveFromAppFunc func) |
Register the callback functions for receiving the transparent data from the mobile app. More... | |
E_PsdkStat | PsdkAppFunc_RegGetWidgetValueCallback (T_PsdkUpper *psdkUpper, GetWidgetValueFunc getWidgetValueFunc) |
Register the callback function for receiving "Get Widget Value Group Data". More... | |
E_PsdkStat | PsdkAppFunc_RegSetWidgetValueCallback (T_PsdkUpper *psdkUpper, SetWidgetValueFunc setWidgetValueFunc) |
Register the callback function for receiving "Set Widget value". More... | |
E_PsdkStat | PsdkAppFunc_RegGetTextInputBoxParamCallback (T_PsdkUpper *psdkUpper, GetTextInputBoxParamFunc getTextInputBoxParamFunc) |
Register the callback function for getting text input box parameters. More... | |
Variables | |
static ReceiveFromAppFunc | s_receiveFromAppFunc = NULL |
Receive data from mobile APP callback function. More... | |
static GetWidgetValueFunc | s_getWidgetValueFunc = NULL |
Get widget value callback function. More... | |
static SetWidgetValueFunc | s_setWidgetValueFunc = NULL |
Set widget value callback function. More... | |
static GetTextInputBoxParamFunc | s_getTextInputBoxParamFunc = NULL |
Get text input box parameters callback function. More... | |
static const T_PsdkAppFuncWidgetListItem * | s_widgetList = NULL |
Pointer to widget item, including widget attribute. More... | |
static uint8_t | s_widgetItemCount = 0 |
Total widget count. More... | |
static const T_PsdkProtCmdItem | s_appFuncProtCmdList [] |
App function commands process function list. More... | |
This file provides the API functions for handling the transparent data transmission between a mobile app (ground) and user's payload via PSDK port, data display of the floating window on "DJI Pilot" app and widgets set & get.
All information contained herein is, and remains, the property of DJI. The intellectual and technical concepts contained herein are proprietary to DJI and may be covered by U.S. and foreign patents, patents in process, and protected by trade secret or copyright law. Dissemination of this information, including but not limited to data and other proprietary material(s) incorporated within the information, in any form, is strictly prohibited without the express written consent of DJI.
If you receive this source code without DJI’s authorization, you may not further disseminate the information, and you must immediately remove the source code and notify DJI of its removal. DJI reserves the right to pursue legal actions against you for any loss(es) or damage(s) caused by your failure to do so.