Go to the documentation of this file.
21 #ifndef MINLIB_ESP32_ERROR_
22 #define MINLIB_ESP32_ERROR_
39 #define MN_ESP2MNTHREAD_ERROR_BEGIN(_error) switch(_error) {
46 #define MN_ESP2MNTHREAD_ERROR_VAL(_error, esp, mnt) case (esp): _error = (mnt); break;
51 #define MN_ESP2MNTHREAD_ERROR_END(_error) default: _error = (ERR_MNTHREAD_UNKN); break; }
53 #define NO_ERROR 0x0000
54 #define ERR_MNTHREAD_TIMEOUT 0x0001
55 #define ERR_MNTHREAD_NULL 0x0002
56 #define ERR_MNTHREAD_NOT_SUPPORTED 0x0005
57 #define ERR_MNTHREAD_UNKN 0x0003
58 #define ERR_MNTHREAD_INVALID_ARG 0x0004
59 #define ERR_MNTHREAD_NETIF_NOT_INIT 0x0006
60 #define ERR_MNTHREAD_OUTOFMEM 0x0007
62 #define ERR_SYSTEM_OK NO_ERROR
63 #define ERR_SYSTEM_LOCK 0x0008
64 #define ERR_SYSTEM_UNLOCK 0x0009
65 #define ERR_SYSTEM_NO_RETURN 0x000A
67 #define ERR_MUTEX_OK NO_ERROR
68 #define ERR_MUTEX_ALREADYINIT 0x1001
69 #define ERR_MUTEX_NOTINIT 0x1002
70 #define ERR_MUTEX_CANTCREATEMUTEX 0x1003
71 #define ERR_MUTEX_LOCK 0x1004
72 #define ERR_MUTEX_UNLOCK 0x1005
74 #define ERR_SPINLOCK_OK NO_ERROR
75 #define ERR_SPINLOCK_ALREADYINIT 0x2001
76 #define ERR_SPINLOCK_NOTINIT 0x2002
77 #define ERR_SPINLOCK_CANTCREATESPINLOCK 0x2003
78 #define ERR_SPINLOCK_LOCK 0x2004
79 #define ERR_SPINLOCK_UNLOCK 0x2005
80 #define ERR_SPINLOCK_BAD_INITIALCOUNT 0x2006
87 #define ERR_TASK_OK NO_ERROR
91 #define ERR_TASK_CANTINITMUTEX 0x3001
95 #define ERR_TASK_CANTSTARTTHREAD 0x3002
99 #define ERR_TASK_THREADFUNCNOTSET 0x3003
103 #define ERR_TASK_NOTRUNNING 0x3004
107 #define ERR_TASK_ALREADYRUNNING 0x3005
111 #define ERR_TASK_CALLFROMSELFTASK 0x3006
115 #define ERR_TASK_CANTCREATEEVENTGROUP 0x3007
122 #define ERR_COROUTINE_OK NO_ERROR
126 #define ERR_COROUTINE_CANTINITLOCKT 0x4001
130 #define ERR_COROUTINE_CANSHEDULE 0x4002
137 #define ERR_QUEUE_OK NO_ERROR
141 #define ERR_QUEUE_ALREADYINIT 0x5001
145 #define ERR_QUEUE_CANTCREATE 0x5002
149 #define ERR_QUEUE_NOTCREATED 0x5003
153 #define ERR_QUEUE_ADD 0x5004
157 #define ERR_QUEUE_REMOVE 0x5005
161 #define ERR_QUEUE_PEEK 0x5006
165 #define ERR_QUEUE_CANTCREATE_LOCK 0x5007
170 #define ERR_TIMER_OK NO_ERROR
174 #define ERR_TIMER_ALREADYINIT 0x6001
178 #define ERR_TIMER_CANTCREATE 0x6002
182 #define ERR_TIMER_NOTCREATED 0x6003
186 #define ERR_TIMER_AKTIVATE 0x6004
190 #define ERR_TIMER_INAKTIVATE 0x6005
194 #define ERR_TIMER_RESET 0x6006
196 #define ERR_WORKQUEUE_OK NO_ERROR
197 #define ERR_WORKQUEUE_ALREADYINIT 0x7001
198 #define ERR_WORKQUEUE_CANTCREATE 0x7002
199 #define ERR_WORKQUEUE_WARNING 0x7003
200 #define ERR_WORKQUEUE_CANTINITMUTEX 0x7004
201 #define ERR_WORKQUEUE_ADD 0x7005
203 #define ERR_MEMPOOL_OK NO_ERROR
204 #define ERR_MEMPOOL_BADALIGNMENT 0x8003
205 #define ERR_MEMPOOL_CREATE 0x8004
206 #define ERR_MEMPOOL_MIN 0x8005
208 #define ERR_TICKHOOK_OK NO_ERROR
209 #define ERR_TICKHOOK_ADD 0x9001
210 #define ERR_TICKHOOK_ENTRY_NULL 0x900A
212 #define ERR_MN_WIFI_OK NO_ERROR
213 #define ERR_MN_WIFI_NOT_INIT 0xA001
214 #define ERR_MN_WIFI_NOT_STARTED 0xA002
215 #define ERR_MN_WIFI_NOT_STOPPED 0xA003
216 #define ERR_MN_WIFI_IF 0xA004
217 #define ERR_MN_WIFI_MODE 0xA005
218 #define ERR_MN_WIFI_STATE 0xA006
219 #define ERR_MN_WIFI_CONN 0xA007
220 #define ERR_MN_WIFI_NVS 0xA008
221 #define ERR_MN_WIFI_MAC 0xA009
222 #define ERR_MN_WIFI_SSID 0xA00A
223 #define ERR_MN_WIFI_PASSWORD 0xA00B
224 #define ERR_MN_WIFI_TIMEOUT 0xA00C
225 #define ERR_MN_WIFI_WAKE_FAIL 0xA00D
226 #define ERR_MN_WIFI_WOULD_BLOCK 0xA00E
227 #define ERR_MN_WIFI_NOT_CONNECT 0xA00F
228 #define ERR_MN_WIFI_CREATE_NETIF 0xA011
229 #define ERR_MN_WIFI_REGISTER_EVENT 0xA012
230 #define ERR_MN_WIFI_SET_MODE 0xA013
232 #define ERR_MN_WIFI_POST 0xA022
233 #define ERR_MN_WIFI_INIT_STATE 0xA023
234 #define ERR_MN_WIFI_STOP_STATE 0xA024
237 #define ERR_MN_USER1_BASE 0xD500
238 #define ERR_MN_USER2_BASE 0xE500
239 #define ERR_MN_USER3_BASE 0xFF00