DJI Payload SDK  1.5.0
Functions
Private functions

Functions

static E_PsdkStat CameraCmd_SetMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle set camera work mode command. More...
 
static E_PsdkStat CameraCmd_GetMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get camera work mode command. More...
 
static E_PsdkStat CameraCmd_ShootPhoto (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle shoot photo command. More...
 
static E_PsdkStat CameraCmd_GetShootPhotoState (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get shoot photo state command. More...
 
static E_PsdkStat CameraCmd_SetShootPhotoMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle set shoot photo mode command. More...
 
static E_PsdkStat CameraCmd_GetShootPhotoMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get shoot photo mode command. More...
 
static E_PsdkStat CameraCmd_RecordVideo (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle record video command. More...
 
static E_PsdkStat CameraCmd_GetRecordVideoState (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get record video state command. More...
 
static E_PsdkStat CameraCmd_GetSDCardState (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get SD card state command. More...
 
static E_PsdkStat CameraCmd_FormatSDCard (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle format SD card command. More...
 
static E_PsdkStat CameraCmd_SetMeteringMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle set metering mode command. More...
 
static E_PsdkStat CameraCmd_GetMeteringMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get metering mode command. More...
 
static E_PsdkStat CameraCmd_SetSpotMetering (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle set spot metering parameters command. More...
 
static E_PsdkStat CameraCmd_GetSpotMetering (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get spot metering parameters command. More...
 
static E_PsdkStat CameraCmd_SetFocusMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle set focus mode command. More...
 
static E_PsdkStat CameraCmd_GetFocusMode (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get focus mode command. More...
 
static E_PsdkStat CameraCmd_SetFocusZone (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle set focus zone command. More...
 
static E_PsdkStat CameraCmd_GetFocusZone (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get focus zone command. More...
 
static E_PsdkStat CameraCmd_GetDigitalZoomSpec (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get digital zoom specification command. More...
 
static E_PsdkStat CameraCmd_SetDigitalZoomFactor (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle set digital zoom factor command. More...
 
static E_PsdkStat CameraCmd_GetDigitalZoomFactor (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get digital zoom factor command. More...
 
static E_PsdkStat CameraCmd_GetOpticalZoomSpec (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Get Optical Zoom specification command. More...
 
static E_PsdkStat CameraCmd_SetOpticalZoomFocalLength (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Set Optical Zoom Focal Length command. More...
 
static E_PsdkStat CameraCmd_GetOpticalZoomFocalLength (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get Optical Zoom Focal Length command. More...
 
static E_PsdkStat CameraCmd_GetOpticalZoomFactor (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Get Optical Zoom Factor command. More...
 
static E_PsdkStat CameraCmd_StartContinuousOpticalZoom (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Start Continuous Optical Zoom command. More...
 
static E_PsdkStat CameraCmd_StopContinuousOpticalZoom (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Stop Continuous Optical Zoom command. More...
 
static E_PsdkStat CameraCmd_SetFocusAssistantSettings (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Set Focus Assistant Setting command. More...
 
static E_PsdkStat CameraCmd_GetFocusAssistantSettings (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle get Focus Assistant Setting command. More...
 
static E_PsdkStat CameraCmd_GetFocusRingValueUpperBound (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Get Focus Ring Value Upper Bound command. More...
 
static E_PsdkStat CameraCmd_SetFocusRingValue (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Set Focus Ring Value command. More...
 
static E_PsdkStat CameraCmd_GetFocusRingValue (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Get Focus Ring Value command. More...
 
static E_PsdkStat CameraCmd_SupportState (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle Get Camera Command Set Support State command. More...
 

Detailed Description

Function Documentation

◆ CameraCmd_SetMode()

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

Handle set camera work mode 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.

◆ CameraCmd_GetMode()

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

Handle get camera work mode 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.

◆ CameraCmd_ShootPhoto()

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

Handle shoot photo 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.

◆ CameraCmd_GetShootPhotoState()

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

Handle get shoot photo state 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.

◆ CameraCmd_SetShootPhotoMode()

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

Handle set shoot photo mode 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.

◆ CameraCmd_GetShootPhotoMode()

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

Handle get shoot photo mode 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.

◆ CameraCmd_RecordVideo()

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

Handle record video 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.

◆ CameraCmd_GetRecordVideoState()

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

Handle get record video state 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.

◆ CameraCmd_GetSDCardState()

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

Handle get SD card state 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.

◆ CameraCmd_FormatSDCard()

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

Handle format SD card 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.

◆ CameraCmd_SetMeteringMode()

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

Handle set metering mode 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.

◆ CameraCmd_GetMeteringMode()

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

Handle get metering mode 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.

◆ CameraCmd_SetSpotMetering()

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

Handle set spot metering parameters 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.

◆ CameraCmd_GetSpotMetering()

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

Handle get spot metering parameters 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.

◆ CameraCmd_SetFocusMode()

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

Handle set focus mode 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.

◆ CameraCmd_GetFocusMode()

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

Handle get focus mode 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.

◆ CameraCmd_SetFocusZone()

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

Handle set focus zone 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.

◆ CameraCmd_GetFocusZone()

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

Handle get focus zone 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.

◆ CameraCmd_GetDigitalZoomSpec()

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

Handle get digital zoom specification 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.

◆ CameraCmd_SetDigitalZoomFactor()

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

Handle set digital zoom factor 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.

◆ CameraCmd_GetDigitalZoomFactor()

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

Handle get digital zoom factor 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.

◆ CameraCmd_GetOpticalZoomSpec()

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

Handle Get Optical Zoom specification 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.

◆ CameraCmd_SetOpticalZoomFocalLength()

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

Handle Set Optical Zoom Focal Length 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.

◆ CameraCmd_GetOpticalZoomFocalLength()

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

Handle get Optical Zoom Focal Length 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.

◆ CameraCmd_GetOpticalZoomFactor()

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

Handle Get Optical Zoom Factor 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.

◆ CameraCmd_StartContinuousOpticalZoom()

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

Handle Start Continuous Optical Zoom 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.

◆ CameraCmd_StopContinuousOpticalZoom()

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

Handle Stop Continuous Optical Zoom 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.

◆ CameraCmd_SetFocusAssistantSettings()

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

Handle Set Focus Assistant Setting 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.

◆ CameraCmd_GetFocusAssistantSettings()

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

Handle get Focus Assistant Setting 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.

◆ CameraCmd_GetFocusRingValueUpperBound()

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

Handle Get Focus Ring Value Upper Bound 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.

◆ CameraCmd_SetFocusRingValue()

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

Handle Set Focus Ring Value 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.

◆ CameraCmd_GetFocusRingValue()

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

Handle Get Focus Ring Value 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.

◆ CameraCmd_SupportState()

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

Handle Get Camera Command Set Support State 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.