MeshX 0.3
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
Loading...
Searching...
No Matches
meshx_err.h File Reference

MeshX Error Codes. More...

#include <stdint.h>
Include dependency graph for meshx_err.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MESHX_UNUSED(x)
 
#define MESHX_DO_NOTHING   do {} while(0)
 
#define MESHX_WEEK   __attribute__((weak))
 
#define MESHX_MALLOC   malloc
 
#define MESHX_CALOC   calloc
 
#define MESHX_FREE   free
 

Enumerations

enum  meshx_err_t {
  MESHX_SUCCESS = 0 ,
  MESHX_FAIL ,
  MESHX_INVALID_ARG ,
  MESHX_ERR_PLAT ,
  MESHX_NO_MEM ,
  MESHX_INVALID_STATE ,
  MESHX_NOT_FOUND ,
  MESHX_NOT_SUPPORTED ,
  MESHX_TIMEOUT ,
  MESHX_ERR_MAX
}
 MeshX Error Codes. More...
 

Detailed Description

MeshX Error Codes.

This file contains the MeshX Error Codes.

Author
Pranjal Chanda

Definition in file meshx_err.h.

Macro Definition Documentation

◆ MESHX_CALOC

#define MESHX_CALOC   calloc

Definition at line 28 of file meshx_err.h.

◆ MESHX_DO_NOTHING

#define MESHX_DO_NOTHING   do {} while(0)

Definition at line 17 of file meshx_err.h.

◆ MESHX_FREE

#define MESHX_FREE   free

Definition at line 32 of file meshx_err.h.

◆ MESHX_MALLOC

#define MESHX_MALLOC   malloc

Definition at line 24 of file meshx_err.h.

◆ MESHX_UNUSED

#define MESHX_UNUSED ( x)
Value:
((void)(x))

Definition at line 15 of file meshx_err.h.

◆ MESHX_WEEK

#define MESHX_WEEK   __attribute__((weak))

Definition at line 19 of file meshx_err.h.

Enumeration Type Documentation

◆ meshx_err_t

MeshX Error Codes.

Enumerator
MESHX_SUCCESS 

Success

MESHX_FAIL  

Failure

MESHX_INVALID_ARG  

Invalid Argument

MESHX_ERR_PLAT  

Platform Error

MESHX_NO_MEM  

No Memory

MESHX_INVALID_STATE  

Invalid State

MESHX_NOT_FOUND  

Not Found

MESHX_NOT_SUPPORTED  

Not Supported

MESHX_TIMEOUT  

Timeout

MESHX_ERR_MAX  

Maximum Error

Definition at line 38 of file meshx_err.h.

39{
40 MESHX_SUCCESS = 0,
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
@ MESHX_SUCCESS
Definition meshx_err.h:40
@ MESHX_INVALID_ARG
Definition meshx_err.h:42
@ MESHX_NOT_SUPPORTED
Definition meshx_err.h:47
@ MESHX_FAIL
Definition meshx_err.h:41
@ MESHX_ERR_PLAT
Definition meshx_err.h:43
@ MESHX_ERR_MAX
Definition meshx_err.h:49
@ MESHX_INVALID_STATE
Definition meshx_err.h:45
@ MESHX_NOT_FOUND
Definition meshx_err.h:46
@ MESHX_NO_MEM
Definition meshx_err.h:44
@ MESHX_TIMEOUT
Definition meshx_err.h:48