10#ifndef __MESHX_ERR_H__
11#define __MESHX_ERR_H__
19#define MESHX_UNUSED(x) ((void)(x))
21#define MESHX_DO_NOTHING do {} while(0)
23#define MESHX_WEEK __attribute__((weak))
28#define MESHX_MALLOC malloc
32#define MESHX_CALOC calloc
36#define MESHX_FREE free
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:43
@ MESHX_ERR_RO_CFG_VERSION
Definition meshx_err.h:58
@ MESHX_INVALID_ARG
Definition meshx_err.h:46
@ MESHX_NOT_SUPPORTED
Definition meshx_err.h:51
@ MESHX_ERR_GPIO_BASE
Definition meshx_err.h:62
@ MESHX_ERR_RO_CFG_BASE
Definition meshx_err.h:56
@ MESHX_FAIL
Definition meshx_err.h:45
@ MESHX_ERR_GPIO_INVALID_PIN
Definition meshx_err.h:63
@ MESHX_ERR_GPIO_KV_STORAGE
Definition meshx_err.h:73
@ MESHX_ERR_GPIO_CONFIG_INVALID
Definition meshx_err.h:71
@ MESHX_ERR_PLAT
Definition meshx_err.h:47
@ MESHX_ERR_GPIO_INVALID_LEVEL
Definition meshx_err.h:65
@ MESHX_ERR_GPIO_PWM_NOT_SUPPORTED
Definition meshx_err.h:68
@ MESHX_ERR_MAX
Definition meshx_err.h:76
@ MESHX_ERR_GPIO_INTR_NOT_SUPPORTED
Definition meshx_err.h:66
@ MESHX_ERR_GPIO_INVALID_MODE
Definition meshx_err.h:64
@ MESHX_ERR_NOT_INIT
Definition meshx_err.h:53
@ MESHX_ERR_GPIO_NOT_INITIALIZED
Definition meshx_err.h:70
@ MESHX_INVALID_STATE
Definition meshx_err.h:49
@ MESHX_ERR_GPIO_HOSTED_MODE
Definition meshx_err.h:72
@ MESHX_ERR_GPIO_PWM_INVALID_PARAM
Definition meshx_err.h:69
@ MESHX_NOT_FOUND
Definition meshx_err.h:50
@ MESHX_NO_MEM
Definition meshx_err.h:48
@ MESHX_ERR_RO_CFG_FORMAT
Definition meshx_err.h:57
@ MESHX_TIMEOUT
Definition meshx_err.h:52
@ MESHX_ERR_GPIO_SERIALIZATION
Definition meshx_err.h:74
@ MESHX_ERR_RO_CFG_CRC
Definition meshx_err.h:59
@ MESHX_ERR_GPIO_INTR_ALREADY_REGISTERED
Definition meshx_err.h:67
**This function is called by the parent element when a state change request *is received It validates the request and returns a result to the element not the model layer **return * MESHX_SUCCESS
Definition meshx_model_level.cpp:385