NEW: release DJI Payload-SDK version 3.12.0

This commit is contained in:
DJI
2025-06-27 22:36:34 +08:00
parent 54b9f6c6c1
commit 326b8698dd
381 changed files with 122574 additions and 451 deletions

View File

@ -45,6 +45,12 @@ typedef enum {
DJI_POWER_MANAGEMENT_PIN_STATE_SET = 1, /*!< Specifies pin is in high level state. */
} E_DjiPowerManagementPinState;
typedef enum {
E_DJI_HIGH_POWER_VOLTAGE_13V6 = 0, /*!< Specifies pin is in 13.6V of voltage */
E_DJI_HIGH_POWER_VOLTAGE_17V = 1, /*!< Specifies pin is in 17V of voltage */
E_DJI_HIGH_POWER_VOLTAGE_24V = 2, /*!< Specifies pin is in 24V of voltage */
} E_DjiHighPowerVoltage;
/**
* @brief Prototype of callback function used to set level of high power application pin.
* @param pinState: level state of pin to be set.
@ -87,6 +93,17 @@ T_DjiReturnCode DjiPowerManagement_DeInit(void);
*/
T_DjiReturnCode DjiPowerManagement_ApplyHighPowerSync(void);
/**
* @brief Apply high power from aircraft in blocking mode.
* @details Before applying, user should register callback function used to set level state of high power application
* pin using DjiPowerManagement_RegWriteHighPowerApplyPinCallback() function. After applying high power, power pin of
* DJI adapter will output high power based predetermined specification.
* @note Max execution time of this function is slightly larger than 600ms.
* @param voltage: The voltage value will be applied to the VCC pin.
* @return Execution result.
*/
T_DjiReturnCode DjiPowerManagement_ApplyHighPowerSyncV2(E_DjiHighPowerVoltage voltage);
/**
* @brief Register callback function used to set level state of high power application pin. Must be called before
* applying high power.
@ -108,6 +125,15 @@ T_DjiReturnCode DjiPowerManagement_RegWriteHighPowerApplyPinCallback(DjiWriteHig
*/
T_DjiReturnCode DjiPowerManagement_RegPowerOffNotificationCallback(DjiPowerOffNotificationCallback callback);
/**
* @brief manifold3 outputs high voltage to external devices
* @param stat: true: output high voltage, false: output low voltage
* @return Execution result.
* @note The gpio12 of manifold3 should be pulled down before requesting a high voltage output.
* @note This interface support on DJI manifold3.
*/
T_DjiReturnCode DjiPowerManagement_OutputHighPower(bool stat);
#ifdef __cplusplus
}
#endif