Updated on 2022-03-13 GMT+08:00

HIAI_Init (Common with C++)

Initializes the host device communication (HDC) module of the Matrix. The device ID specified in the graph configuration file is preferred. Otherwise, use the value of deviceID configured below. This API is defined in init.h.

Syntax

HIAI_StatusT HIAI_Init(uint32_t deviceID)

For details about the definition of the HIAI_StatusT structure, see Matrix Custom Data Types.

Parameter Description

Parameter

Description

Value Range

deviceID

Device ID. The default value is 0.

0–63

Return Value

For details about the returned error codes, see "Error Codes."

Error Codes

No.

Error Code

Description

1

HIAI_OK

The running is OK.

2

HIAI_INIT_FAIL

HiAI initialization fails.