DJI Payload SDK  1.5.3
Data Structures | Macros | Typedefs | Functions
psdk_app_func.h File Reference

This is the header file for "psdk_app_func.c", defining the structures and (exported) function prototypes. More...

#include <psdk_upper.h>
#include "psdk_cmdset.h"

Go to the source code of this file.

Data Structures

struct  T_PsdkAppFuncWidgetListItem
 Widget detail information. More...
 

Macros

#define APPFUNC_DEF_BUTTON_WIDGET(index, nameStr)
 Define button widget. More...
 
#define APPFUNC_DEF_SWITCH_WIDGET(index, nameStr)
 Define switch widget. More...
 
#define APPFUNC_DEF_SCALE_WIDGET(index, nameStr)
 Define scale widget. More...
 
#define APPFUNC_DEF_LIST_WIDGET(index, nameStr, chooseCount, choose1Str, ...)
 Define list widget. More...
 
#define APPFUNC_DEF_INT_INPUT_BOX_WIDGET(index, nameStr, promtStr)
 Define input box widget. More...
 

Typedefs

typedef void(* ReceiveFromAppFunc) (const uint8_t *pData, uint16_t dataLen)
 
typedef E_PsdkStat(* GetWidgetValueFunc) (E_PsdkAppFuncWidgetType widgetType, uint8_t widgetIndex, U_AppFuncWidgetValue *pWidgetValue)
 
typedef E_PsdkStat(* SetWidgetValueFunc) (E_PsdkAppFuncWidgetType widgetType, uint8_t widgetIndex, const U_AppFuncWidgetValue *pWidgetValue)
 
typedef E_PsdkStat(* GetTextInputBoxParamFunc) (E_PsdkAppFuncTextInputBoxDisplayControlFlag *displayControlFlag, uint8_t *boxName, uint8_t *boxDescription)
 

Functions

E_PsdkStat PsdkAppFunc_Init (T_PsdkUpper *psdkUpper)
 
E_PsdkStat PsdkAppFunc_TransferToApp (T_PsdkUpper *psdkUpper, const uint8_t *pSendData, uint16_t needSendLen, uint16_t *pRealSendLen)
 
E_PsdkStat PsdkAppFunc_SetReceiveFromAppCallback (T_PsdkUpper *psdkUpper, ReceiveFromAppFunc func)
 
E_PsdkStat PsdkAppFunc_PushMsgToFloatingWindow (T_PsdkUpper *psdkUpper, const char *msg)
 
E_PsdkStat PsdkAppFunc_SetWidgetList (T_PsdkUpper *psdkUpper, const T_PsdkAppFuncWidgetListItem *widgetList, uint8_t widgetItemCount)
 
E_PsdkStat PsdkAppFunc_RegGetWidgetValueCallback (T_PsdkUpper *psdkUpper, GetWidgetValueFunc getWidgetValueFunc)
 
E_PsdkStat PsdkAppFunc_RegSetWidgetValueCallback (T_PsdkUpper *psdkUpper, SetWidgetValueFunc setWidgetValueFunc)
 
E_PsdkStat PsdkAppFunc_RegGetTextInputBoxParamCallback (T_PsdkUpper *psdkUpper, GetTextInputBoxParamFunc getTextInputBoxParamFunc)
 

Detailed Description

This is the header file for "psdk_app_func.c", defining the structures and (exported) function prototypes.

Version
V1.0.0
Date
2017/08/10

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.