monoZ docs
MZ_error_handler.h File Reference

monoZ Error Handler More...

#include "MZ_tool_config.h"

Go to the source code of this file.

Macros

#define MZ_ERROR_HANDLER_H_
 Defines Inc monoZ Error Handler. More...
 

Enumerations

enum  mz_error_t {
  MZ_OK , MZ_FAIL , MZ_CALLBACK_REG_FAIL , MZ_MEM_ALLOCATION_FAIL ,
  MZ_UART_INVALID_NO , MZ_UART_ALREADY_REG , MZ_UART_INIT_FAIL , MZ_UART_NOT_REG ,
  MZ_RTC_INIT_FAIL , MZ_RTC_NOT_REG , MZ_RTC_READ_FAIL , MZ_RTC_WRITE_FAIL ,
  MZ_I2C_INVALID_NO , MZ_I2C_ALREADY_REG , MZ_I2C_INIT_FAIL , MZ_I2C_NOT_REG ,
  MZ_SEMA_CREATE_FAIL , MZ_SEMA_ACQUIRE_FAIL , MZ_MUTEX_CREATE_FAIL , MZ_MUTEX_ACQUIRE_FAIL ,
  MZ_MAILBOX_CREATE_FAIL , MZ_THREAD_CREATE_FAIL , MZ_INVALID_ARGUMENT , MZ_INVALID_SIZE ,
  MZ_INTERFACE_NOT_DEFINED , MZ_AT_CMD_CREATE_FAIL , MZ_AT_CMD_TYPE_WRONG , MZ_AT_CMD_NOTSUPPORT ,
  MZ_AT_CORE_INIT_FAILED , MZ_AT_SLOT_COUNT_ERROR , MZ_LW_INVALID_OBJECT , MZ_LW_INVALID_OBJ_INSTANCE ,
  MZ_LW_INVALID_RESOURCE , MZ_LW_INVALID_RES_INSTANCE , MZ_LW_INVALID_TOKEN , MZ_INVALID_VERSION
}
 Enumeration of monoZ Error Flags. More...
 

Functions

const char * mz_error_to_str (mz_error_t e)
 This function is used to convert the monoZ error code to corresponding error message. More...
 

Detailed Description

monoZ Error Handler

Author
SKM
Date
Mar 22, 2021

Definition in file MZ_error_handler.h.

Macro Definition Documentation

◆ MZ_ERROR_HANDLER_H_

#define MZ_ERROR_HANDLER_H_

Defines Inc monoZ Error Handler.

Definition at line 9 of file MZ_error_handler.h.

Enumeration Type Documentation

◆ mz_error_t

enum mz_error_t

Enumeration of monoZ Error Flags.

Enumerator
MZ_OK 

OK

MZ_FAIL 

Generic Fail

MZ_CALLBACK_REG_FAIL 

Failed to initialize the callback functionality

MZ_MEM_ALLOCATION_FAIL 

Failed to allocate memory

MZ_UART_INVALID_NO 

Invalid UART number

MZ_UART_ALREADY_REG 

UART is already registered

MZ_UART_INIT_FAIL 

UART initialization failed

MZ_UART_NOT_REG 

UART is not registered

MZ_RTC_INIT_FAIL 

RTC initialization failed

MZ_RTC_NOT_REG 

RTC is not registered

MZ_RTC_READ_FAIL 

RTC Read Failed

MZ_RTC_WRITE_FAIL 

RTC Write Failed

MZ_I2C_INVALID_NO 

Invalid I2C number

MZ_I2C_ALREADY_REG 

I2C is already registered

MZ_I2C_INIT_FAIL 

I2C initialization failed

MZ_I2C_NOT_REG 

I2C is not registered

MZ_SEMA_CREATE_FAIL 

Semaphore creation failed

MZ_SEMA_ACQUIRE_FAIL 

Semaphore acquire failed

MZ_MUTEX_CREATE_FAIL 

Mutex creation failed

MZ_MUTEX_ACQUIRE_FAIL 

Mutex acquire failed

MZ_MAILBOX_CREATE_FAIL 

Mailbox creation failed

MZ_THREAD_CREATE_FAIL 

Thread creation failed

MZ_INVALID_ARGUMENT 

Invalid Argument

MZ_INVALID_SIZE 

Invalid Size

MZ_INTERFACE_NOT_DEFINED 

Interface is not defined

MZ_AT_CMD_CREATE_FAIL 

AT cmd creation failed

MZ_AT_CMD_TYPE_WRONG 

wrong AT cmd type

MZ_AT_CMD_NOTSUPPORT 

AT cmd not supported

MZ_AT_CORE_INIT_FAILED 

AT core initialization failed

MZ_AT_SLOT_COUNT_ERROR 

Wrong number of slot configured in software

MZ_LW_INVALID_OBJECT 

Invalid Lwm2m Object reference

MZ_LW_INVALID_OBJ_INSTANCE 

Invalid Lwm2m Object Instance

MZ_LW_INVALID_RESOURCE 

Invalid Lwm2m Resource reference

MZ_LW_INVALID_RES_INSTANCE 

Invalid Lwm2m Resource Instance

MZ_LW_INVALID_TOKEN 

Token not present for the resource

MZ_INVALID_VERSION 

Invalid Version

Definition at line 18 of file MZ_error_handler.h.