![]() |
DJI Payload SDK
1.5.0
|
This file provides the API functions for handling the camera commands from the mobile app (ground) via PSDK port. More...
#include <psdk.h>
Macros | |
#define | MODLE_FUNC_CAMCMD(name) |
Macro used to define camera command process function. More... | |
#define | CAMCMD(name) CameraCmd_##name |
Function name macro. More... | |
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... | |
E_PsdkStat | PsdkCamera_Init (T_PsdkUpper *psdkUpper, const T_PsdkCameraHandler *cameraHandler) |
Initialize PSDK camera commands handling. More... | |
Variables | |
static uint8_t | s_isSupportCamera = 0 |
camera command set support state More... | |
static T_PsdkCameraHandler | s_cameraHandler = {0} |
camera command callback function list More... | |
static const T_PsdkProtCmdItem | s_PayloadCameraCmdList [] |
Camera commands process function list. More... | |
This file provides the API functions for handling the camera commands from the mobile app (ground) via PSDK port.
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.