43#define SYS_ERR_EVT_SRC_IAED 0x1U
45#define SYS_ERR_EVT_PARAM_CHECK_TASKS 0x1U
46#define SYS_ERR_EVT_PARAM_EFT 0x2U
47#define SYS_ERR_EVT_PARAM_EFT_TIMEOUT 0x3U
48#define SYS_ERR_EVT_PARAM_NOP 0x4U
56#define SYS_ERR_MAKE_EVENT(src, params) ((((src) & 0X7U) | (((params)<<3) & 0xF8U) | (0x1U<<31)) & 0x800000FF)
64#define SYS_IS_ERROR_EVENT(evt) ((evt).xEvent.nEventType == 1U)
67#define SysPostErrorEvent SysPostEvent
131#define SYS_CLEAR_ERROR() {g_nSysError.error_code = 0;}
132#define SYS_CLEAR_LOW_LEVEL_ERROR() {g_nSysError.type.low_level_e = 0;}
133#define SYS_IS_ERROR(e) ((e).error_code != 0U)
134#define SYS_IS_ERROR_CODE(e) ((e)!=0U)
135#define SYS_IS_LOW_LEVEL_ERROR(e) ( (e).type.low_level_e )
136#define SYS_IS_SERVICE_LEVEL_ERROR(e) ( (e).type.service_level_e )
137#define SYS_SET_LOW_LEVEL_ERROR_CODE(e) {g_nSysError.type.low_level_e = (e);}
138#define SYS_SET_SERVICE_LEVEL_ERROR_CODE(e) {g_nSysError.type.service_level_e = (e);}
139#define SYS_GET_LAST_ERROR() g_nSysError
140#define SYS_GET_LAST_LOW_LEVEL_ERROR_CODE() (sys_error_code_t)(g_nSysError.type.low_level_e)
141#define SYS_GET_LAST_SERVICE_LEVEL_ERROR_CODE() (sys_error_code_t)(g_nSysError.type.service_level_e)
142#define SYS_GET_LOW_LEVEL_ERROR_CODE(e) (sys_error_code_t)((e).type.low_level_))
143#define SYS_GET_SERVICE_LEVEL_ERROR_CODE(e) (sys_error_code_t)((e).type.service_level_e)
145#define SYS_GENERIC_LOW_LEVEL_ERROR ((sys_error_t){0x1})
147#define SYS_NO_ERROR ((sys_error_t){0x0})
148#define SYS_NO_ERROR_CODE (sys_error_code_t)(0x0)
149#define SYS_GROUP_ERROR_COUNT (sys_error_code_t)(200)
152#define SYS_BASE_LOW_LEVEL_ERROR ((sys_error_t){0x1})
153#define SYS_BASE_LOW_LEVEL_ERROR_CODE (sys_error_code_t)(0x1)
156#define SYS_BASE_SERVICE_LEVEL_ERROR ((sys_error_t){0x10000})
157#define SYS_BASE_SERVICE_LEVEL_ERROR_CODE (sys_error_code_t)(0x1)
164#define SYS_BASE_ERROR_CODE (sys_error_code_t)(0x1)
165#define SYS_UNDEFINED_ERROR_CODE (sys_error_code_t)(SYS_BASE_ERROR_CODE + (uint16_t)1)
166#define SYS_OUT_OF_MEMORY_ERROR_CODE (sys_error_code_t)(SYS_BASE_ERROR_CODE + (uint16_t)2)
167#define SYS_INVALID_PARAMETER_ERROR_CODE (sys_error_code_t)(SYS_BASE_ERROR_CODE + (uint16_t)3)
168#define SYS_INVALID_FUNC_CALL_ERROR_CODE (sys_error_code_t)(SYS_BASE_ERROR_CODE + (uint16_t)4)
169#define SYS_TIMEOUT_ERROR_CODE (sys_error_code_t)(SYS_BASE_ERROR_CODE + (uint16_t)5)
170#define SYS_NOT_IMPLEMENTED_ERROR_CODE (sys_error_code_t)(SYS_BASE_ERROR_CODE + (uint16_t)6)
181#define SYS_BASE_AC_ERROR_CODE (sys_error_code_t)(SYS_BASE_ERROR_CODE + SYS_GROUP_ERROR_COUNT)
182#define SYS_AC_TASK_ALREADY_ADDED_ERROR_CODE (sys_error_code_t)(SYS_BASE_AC_ERROR_CODE + (uint16_t)1)
185#define SYS_BASE_IEVTSRC_ERROR_CODE (sys_error_code_t)(SYS_BASE_AC_ERROR_CODE + SYS_GROUP_ERROR_COUNT)
186#define SYS_IEVTSRC_FULL_ERROR_CODE (sys_error_code_t)(SYS_BASE_IEVTSRC_ERROR_CODE + (uint16_t)1)
189#define SYS_BASE_TS_ERROR_CODE (sys_error_code_t)(SYS_BASE_IEVTSRC_ERROR_CODE + SYS_GROUP_ERROR_COUNT)
190#define SYS_TS_SERVICE_ISSUE_ERROR_CODE (sys_error_code_t)(SYS_BASE_TS_ERROR_CODE + (uint16_t)1)
196#define SYS_BASE_TASK_ERROR_CODE (sys_error_code_t)(SYS_BASE_TS_ERROR_CODE + SYS_GROUP_ERROR_COUNT)
197#define SYS_TASK_HEAP_OUT_OF_MEMORY_ERROR_CODE (sys_error_code_t)(SYS_BASE_TASK_ERROR_CODE + (uint16_t)1)
198#define SYS_TASK_INVALID_CALL_ERROR_CODE (sys_error_code_t)(SYS_BASE_TASK_ERROR_CODE + (uint16_t)2)
199#define SYS_TASK_INVALID_PARAM_ERROR_CODE (sys_error_code_t)(SYS_BASE_TASK_ERROR_CODE + (uint16_t)3)
200#define SYS_TASK_QUEUE_FULL_ERROR_CODE (sys_error_code_t)(SYS_BASE_TASK_ERROR_CODE + (uint16_t)4)
204#define SYS_BASE_INIT_TASK_ERROR_CODE (sys_error_code_t)(SYS_BASE_TASK_ERROR_CODE + SYS_GROUP_ERROR_COUNT)
205#define SYS_INIT_TASK_FAILURE_ERROR_CODE (sys_error_code_t)(SYS_BASE_INIT_TASK_ERROR_CODE + (uint16_t)1)
206#define SYS_INIT_TASK_POWER_MODE_NOT_ENABLE_ERROR_CODE (sys_error_code_t)(SYS_BASE_INIT_TASK_ERROR_CODE + (uint16_t)2)
208#define SYS_LAST_ERROR_CODE (sys_error_code_t)SYS_INIT_TASK_POWER_MODE_NOT_ENABLE_ERROR_CODE
210#define APP_BASE_ERROR_CODE SYS_LAST_ERROR_CODE + ((sys_error_code_t)1)
union _sys_error_t sys_error_t
void SysResetAEDCounter(void)
Definition sysinit.c:319
uint16_t sys_error_code_t
Definition syserror.h:41
void sys_error_handler(void)
unsigned int low_level_e
Definition syserror.h:106
unsigned int service_level_e
Definition syserror.h:111
struct _sys_error_t::@0 type
unsigned long error_code
Definition syserror.h:97