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 0x00E1
69 #define APP_DRV_ERR_BUSY 0x00E2
70 #define APP_DRV_ERR_TIMEOUT 0x00E3
71 #define APP_DRV_ERR_INVALID_PARAM 0x00E4
72 #define APP_DRV_ERR_POINTER_NULL 0x00E5
73 #define APP_DRV_ERR_INVALID_TYPE 0x00E6
74 #define APP_DRV_ERR_INVALID_MODE 0x00E7
75 #define APP_DRV_ERR_INVALID_ID 0x00E8
76 #define APP_DRV_ERR_NOT_INIT 0x00E9
77 #define APP_DRV_ERR_INVALID_INIT 0x00EA
84 #ifndef APP_DRV_ERR_CODE_CHECK
85 #define APP_DRV_ERR_CODE_CHECK(err_code) \
88 if (APP_DRV_SUCCESS != err_code) \
100 #ifndef HAL_ERR_CODE_CHECK
101 #define HAL_ERR_CODE_CHECK(err_code) \
104 if (HAL_OK != err_code) \
106 return (uint16_t)err_code; \
uint16_t app_drv_err_t
APP driver error type.