HMS Management
The header file of the related functions of the health management system is dji_hms_manager.h
. This document describes the key information and usage of the structure and function prototypes in the dji_hms_manager.h
file.
Catalog
Definition, Enum and Struct
T_DjiHmsInfo
T_DjiHmsInfoTable
DjiHmsInfoCallback
Definition, Enum and Struct
typedef struct T_DjiHmsInfo
typedef struct {
uint32_t errorCode;
uint8_t componentIndex;
uint8_t errorLevel;
} T_DjiHmsInfo;
typedef struct T_DjiHmsInfoTable
typedef struct {
T_DjiHmsInfo *hmsInfo;
uint32_t hmsInfoNum;
} T_DjiHmsInfoTable;
typedef function DjiHmsInfoCallback
typedef T_DjiReturnCode (*DjiHmsInfoCallback)(T_DjiHmsInfoTable hmsInfoTable);
Function
function DjiHms_Init
Function:Initialise hms module, and user should call this function before using hms features. | product:all |
T_DjiReturnCode DjiHms_Init(void);
Return
The details for the return code please refer to: DjiErrorCode
function DjiHms_DeInit
Function:Deinitialise hms module. | product:all |
T_DjiReturnCode DjiHms_DeInit(void);
Return
The details for the return code please refer to: DjiErrorCode
function DjiHms_RegHmsInfoCallback
Function:Register callback to get hms info. | product:all |
T_DjiReturnCode DjiHms_RegHmsInfoCallback(DjiHmsInfoCallback callback);
callback:see reference of DjiHmsInfoCallback.
Return
The details for the return code please refer to: DjiErrorCode