DJI Payload SDK  1.5.0
Functions

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...
 
static E_PsdkStat OsdkFuncCmd_TT_OsdkToLoad (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle transparent data transmission from Osdk to payload end. More...
 

Detailed Description

Function Documentation

◆ AppFuncCmd_TT_AppToLoad()

static E_PsdkStat AppFuncCmd_TT_AppToLoad ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle transparent data transmission from APP to load.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ AppFuncCmd_GetWidgetListLength()

static E_PsdkStat AppFuncCmd_GetWidgetListLength ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle Get Widget List Length Command.

Send widget list length to SKYPORT.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ AppFuncCmd_GetWidgetListValue()

static E_PsdkStat AppFuncCmd_GetWidgetListValue ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle Get Widget List Value Command.

Send specified widget attribute to SKYPORT.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ AppFuncCmd_GetWidgetGroupCount()

static E_PsdkStat AppFuncCmd_GetWidgetGroupCount ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle Get Widget Group Count Command.

Send widget group count to SKYPORT.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ AppFuncCmd_GetWidgetGroupValue()

static E_PsdkStat AppFuncCmd_GetWidgetGroupValue ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle Get Widget Group Value Command.

Send widget value of a widget group to SKYPORT.

Note
Button widget value will be 0 all the time, because button widget value is meaningless when getting widget value.
Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ AppFuncCmd_SetWidgetValue()

static E_PsdkStat AppFuncCmd_SetWidgetValue ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle Set Widget Value Command.

Determine whether the widget value meets requirements and write it to widget list.

Note
Button widget value will not be written, but corresponding callback dunction will be called still.
Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ AppFuncCmd_GetTextInputBoxParam()

static E_PsdkStat AppFuncCmd_GetTextInputBoxParam ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle Get Text Input Box Param Command.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ OsdkFuncCmd_TT_OsdkToLoad()

static E_PsdkStat OsdkFuncCmd_TT_OsdkToLoad ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle transparent data transmission from Osdk to payload end.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.