monoZ docs
MZ_error_handler.h
Go to the documentation of this file.
1
8#ifndef MZ_ERROR_HANDLER_H_
9#define MZ_ERROR_HANDLER_H_
10#ifdef __cplusplus
11extern "C" {
12#endif
13#include "MZ_tool_config.h"
18typedef enum
19{
25 // Memory related error flag
28 // UART related error flags
34 // RTC related error flags
40 // I2C related error flags
46 // System related error flags
54 // Function related Error flags
58 // Initialization Error flags
61 // AT cmd related error flags
66 // AT Core related error flags
70 // LWM2M related error flags
77#if(MZ_FLASH_DRIVER_ENABLE == 1)
78 // Flash related error flags
79 MZ_FLASH_UNLOCK_FAILED,
80 MZ_FLASH_LOCK_FAILED,
81 MZ_FLASH_ADD_OUTSIDE,
82 MZ_FLASH_PAGE_OUTSIDE_BANK,
83 MZ_FLASH_ADD_OUTSIDE_CTX,
84 MZ_FLASH_PAGE_OUTSIDE_CTX,
85 MZ_FLASH_ERASE_FAILED,
86 MZ_FLASH_INVALID_WRITE_SIZE,
87 MZ_FLASH_WRITE_FAILED,
88 MZ_FLASH_NOT_READY,
89#if(MZ_FLASH_CONFIG_ENABLE == 1)
90 MZ_CONFIG_CTX_INIT_FAILED,
91 MZ_CONFIG_PLACEMENT_ERROR,
92 MZ_CONFIG_INVALID_VERSION,
94#endif //(MZ_FLASH_CONFIG_ENABLE == 1)
95#endif //(MZ_FLASH_DRIVER_ENABLE == 1)
96
100
113#ifdef __cplusplus
114}
115#endif
116#endif /* MZ_ERROR_HANDLER_H_ */
mz_error_t
Enumeration of monoZ Error Flags.
@ MZ_INVALID_ARGUMENT
@ MZ_AT_CORE_INIT_FAILED
@ MZ_I2C_ALREADY_REG
@ MZ_LW_INVALID_TOKEN
@ MZ_RTC_WRITE_FAIL
@ MZ_SEMA_CREATE_FAIL
@ MZ_RTC_INIT_FAIL
@ MZ_MUTEX_ACQUIRE_FAIL
@ MZ_MUTEX_CREATE_FAIL
@ MZ_INTERFACE_NOT_DEFINED
@ MZ_LW_INVALID_OBJ_INSTANCE
@ MZ_LW_INVALID_OBJECT
@ MZ_AT_CMD_CREATE_FAIL
@ MZ_RTC_READ_FAIL
@ MZ_INVALID_VERSION
@ MZ_UART_ALREADY_REG
@ MZ_AT_SLOT_COUNT_ERROR
@ MZ_I2C_INVALID_NO
@ MZ_LW_INVALID_RESOURCE
@ MZ_THREAD_CREATE_FAIL
@ MZ_MEM_ALLOCATION_FAIL
@ MZ_UART_INVALID_NO
@ MZ_I2C_INIT_FAIL
@ MZ_UART_INIT_FAIL
@ MZ_CALLBACK_REG_FAIL
@ MZ_LW_INVALID_RES_INSTANCE
@ MZ_AT_CMD_TYPE_WRONG
@ MZ_SEMA_ACQUIRE_FAIL
@ MZ_INVALID_SIZE
@ MZ_UART_NOT_REG
@ MZ_I2C_NOT_REG
@ MZ_OK
@ MZ_RTC_NOT_REG
@ MZ_AT_CMD_NOTSUPPORT
@ MZ_MAILBOX_CREATE_FAIL
@ MZ_FAIL
Configuration of monoZ Tool.
const char * mz_error_to_str(mz_error_t e)
This function is used to convert the monoZ error code to corresponding error message.