HMS Management

2024-11-07
No Rating

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

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);
Parameter
callback:see reference of DjiHmsInfoCallback.
Return
The details for the return code please refer to: DjiErrorCode
If you have any comments or confusion about our documentation, you can click here to give feedback and we will get back to you as soon as possible.