Go to the documentation of this file.
52 #ifndef _APP_DRV_ERROR_H_
53 #define _APP_DRV_ERROR_H_
67 #define APP_DRV_SUCCESS 0x0000
68 #define APP_DRV_ERR_HAL 0x0001
69 #define APP_DRV_ERR_BUSY 0x0002
70 #define APP_DRV_ERR_TIMEOUT 0x0003
71 #define APP_DRV_ERR_INVALID_PARAM 0x0004
72 #define APP_DRV_ERR_POINTER_NULL 0x0005
73 #define APP_DRV_ERR_INVALID_TYPE 0x0006
74 #define APP_DRV_ERR_INVALID_MODE 0x0007
75 #define APP_DRV_ERR_INVALID_ID 0x0008
76 #define APP_DRV_ERR_NOT_INIT 0x0009
83 #define APP_DRV_ERR_CODE_CHECK(err_code) \
86 if (APP_DRV_SUCCESS != err_code) \
97 #define HAL_ERR_CODE_CHECK(err_code) \
100 if (HAL_OK != err_code) \
102 return (uint16_t)err_code; \
uint16_t app_drv_err_t
APP driver error type.