openHiTLS API openHiTLS 0.1.0-Alpha1

◆ BSL_ERR_GetError()

int32_t BSL_ERR_GetError ( void  )

Obtain the earliest push error code in the error stack.

This API is called when an error occurs on a HiTLS API to obtain the error code. The API can be called all the time. 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.