openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_ERR_GetLastError()

int32_t BSL_ERR_GetLastError ( void  )

Obtains the error code of the last push in the error stack.

This API is called when an error occurs on a HiTLS interface to obtain the error code. The interface can be called continuously. The error code returned each time forms the error stack of the interface until BSL_SUCCESS is returned.

注意
None.
返回值
Errorcode. The most significant 16 bits indicate the ID of the module where the error occurs, and the least significant 16 bits indicate the cause number.