hdf_base.h
Overview
Related Modules:
Description:
Declares driver common types, including the enumerated values returned by the function and the macro for obtaining the array size.
Since:
1.0
Version:
1.0
Summary
Macros
HDF_BSP_ERR_START (-100) |
|
HDF_BSP_ERR_NUM(v) (HDF_BSP_ERR_START + (v)) |
|
HDF_DEV_ERR_START (-200) |
|
HDF_DEV_ERR_NUM(v) (HDF_DEV_ERR_START + (v)) |
|
HDF_WAIT_FOREVER 0xFFFFFFFF |
Indicates that the function keeps waiting to obtain a semaphore or mutex. |
HDF_ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
|
HDF_KILO_UNIT 1000 |
Defines a time conversion unit, for example, the unit for converting from second to millisecond. |
Enumerations
HDF_STATUS { HDF_SUCCESS = 0, HDF_FAILURE = -1, HDF_ERR_NOT_SUPPORT = -2, HDF_ERR_INVALID_PARAM = -3, HDF_ERR_INVALID_OBJECT = -4, HDF_ERR_MALLOC_FAIL = -6, HDF_ERR_TIMEOUT = -7, HDF_ERR_THREAD_CREATE_FAIL = -10, HDF_ERR_QUEUE_FULL = -15, HDF_ERR_DEVICE_BUSY = -16, HDF_ERR_IO = -17, HDF_ERR_BAD_FD = -18, HDF_BSP_ERR_OP = HDF_BSP_ERR_NUM(-1), HDF_ERR_BSP_PLT_API_ERR = HDF_BSP_ERR_NUM(-2), HDF_PAL_ERR_DEV_CREATE = HDF_BSP_ERR_NUM(-3), HDF_PAL_ERR_INNER = HDF_BSP_ERR_NUM(-4), HDF_DEV_ERR_NO_MEMORY = HDF_DEV_ERR_NUM(-1), HDF_DEV_ERR_NO_DEVICE = HDF_DEV_ERR_NUM(-2), HDF_DEV_ERR_NO_DEVICE_SERVICE = HDF_DEV_ERR_NUM(-3), HDF_DEV_ERR_DEV_INIT_FAIL = HDF_DEV_ERR_NUM(-4), HDF_DEV_ERR_PUBLISH_FAIL = HDF_DEV_ERR_NUM(-5), HDF_DEV_ERR_ATTACHDEV_FAIL = HDF_DEV_ERR_NUM(-6), HDF_DEV_ERR_NODATA = HDF_DEV_ERR_NUM(-7), HDF_DEV_ERR_NORANGE = HDF_DEV_ERR_NUM(-8), HDF_DEV_ERR_OP = HDF_DEV_ERR_NUM(-10) } |
Details
Macro Definition Documentation
HDF_BSP_ERR_NUM
#define HDF_BSP_ERR_NUM( v) ([HDF_BSP_ERR_START]($api-api-SmartVision-Devices-hdf_base-h.md#aa6370acad4a8ca2031370c833f2ff51f) + (v))
Description:
Defines the BSP module error codes.
HDF_BSP_ERR_START
#define HDF_BSP_ERR_START (-100)
Description:
Defines the start of the Board Support Package (BSP) module error codes.
HDF_DEV_ERR_NUM
#define HDF_DEV_ERR_NUM( v) ([HDF_DEV_ERR_START]($api-api-SmartVision-Devices-hdf_base-h.md#afdce96b5c938acadb74cdcb09d53cfaf) + (v))
Description:
Defines the device module error codes.
HDF_DEV_ERR_START
#define HDF_DEV_ERR_START (-200)
Description:
Defines the start of the device module error codes.