Zigbee Protocol Controller
1.6.0
sl_status.h
Go to the documentation of this file.
1
18
#ifndef SL_STATUS_H
19
#define SL_STATUS_H
20
21
#include <stdint.h>
22
23
38
/*
39
*************************** STATUS DEFINES ********************************
40
*/
41
42
/*
43
*************************** GENERIC ERRORS ********************************
44
*/
45
/*******************************************************************************
46
*************************** GENERIC ERRORS ********************************
47
******************************************************************************/
48
49
#define SL_STATUS_OK ((sl_status_t)0x0000)
50
#define SL_STATUS_FAIL ((sl_status_t)0x0001)
51
52
// State Errors
53
#define SL_STATUS_INVALID_STATE ((sl_status_t)0x0002)
54
#define SL_STATUS_NOT_READY ((sl_status_t)0x0003)
55
#define SL_STATUS_BUSY ((sl_status_t)0x0004)
56
#define SL_STATUS_IN_PROGRESS ((sl_status_t)0x0005)
57
#define SL_STATUS_ABORT ((sl_status_t)0x0006)
58
#define SL_STATUS_TIMEOUT ((sl_status_t)0x0007)
59
#define SL_STATUS_PERMISSION ((sl_status_t)0x0008)
60
#define SL_STATUS_WOULD_BLOCK ((sl_status_t)0x0009)
61
#define SL_STATUS_IDLE ((sl_status_t)0x000A)
62
#define SL_STATUS_IS_WAITING ((sl_status_t)0x000B)
63
#define SL_STATUS_NONE_WAITING ((sl_status_t)0x000C)
64
#define SL_STATUS_SUSPENDED ((sl_status_t)0x000D)
65
#define SL_STATUS_NOT_AVAILABLE ((sl_status_t)0x000E)
66
#define SL_STATUS_NOT_SUPPORTED ((sl_status_t)0x000F)
67
#define SL_STATUS_INITIALIZATION ((sl_status_t)0x0010)
68
#define SL_STATUS_NOT_INITIALIZED ((sl_status_t)0x0011)
69
#define SL_STATUS_ALREADY_INITIALIZED ((sl_status_t)0x0012)
70
#define SL_STATUS_DELETED ((sl_status_t)0x0013)
71
#define SL_STATUS_ISR ((sl_status_t)0x0014)
72
#define SL_STATUS_NETWORK_UP ((sl_status_t)0x0015)
73
#define SL_STATUS_NETWORK_DOWN ((sl_status_t)0x0016)
74
#define SL_STATUS_NOT_JOINED ((sl_status_t)0x0017)
75
#define SL_STATUS_NO_BEACONS ((sl_status_t)0x0018)
76
77
// Allocation/ownership Errors
78
#define SL_STATUS_ALLOCATION_FAILED ((sl_status_t)0x0019)
79
#define SL_STATUS_NO_MORE_RESOURCE ((sl_status_t)0x001A)
80
#define SL_STATUS_EMPTY ((sl_status_t)0x001B)
81
#define SL_STATUS_FULL ((sl_status_t)0x001C)
82
#define SL_STATUS_WOULD_OVERFLOW ((sl_status_t)0x001D)
83
#define SL_STATUS_HAS_OVERFLOWED ((sl_status_t)0x001E)
84
#define SL_STATUS_OWNERSHIP ((sl_status_t)0x001F)
85
#define SL_STATUS_IS_OWNER ((sl_status_t)0x0020)
86
87
// Invalid Parameters Errors
88
#define SL_STATUS_INVALID_PARAMETER ((sl_status_t)0x0021)
89
#define SL_STATUS_NULL_POINTER ((sl_status_t)0x0022)
90
#define SL_STATUS_INVALID_CONFIGURATION ((sl_status_t)0x0023)
91
#define SL_STATUS_INVALID_MODE ((sl_status_t)0x0024)
92
#define SL_STATUS_INVALID_HANDLE ((sl_status_t)0x0025)
93
#define SL_STATUS_INVALID_TYPE ((sl_status_t)0x0026)
94
#define SL_STATUS_INVALID_INDEX ((sl_status_t)0x0027)
95
#define SL_STATUS_INVALID_RANGE ((sl_status_t)0x0028)
96
#define SL_STATUS_INVALID_KEY ((sl_status_t)0x0029)
97
#define SL_STATUS_INVALID_CREDENTIALS ((sl_status_t)0x002A)
98
#define SL_STATUS_INVALID_COUNT ((sl_status_t)0x002B)
99
#define SL_STATUS_INVALID_SIGNATURE ((sl_status_t)0x002C)
100
#define SL_STATUS_NOT_FOUND ((sl_status_t)0x002D)
101
#define SL_STATUS_ALREADY_EXISTS ((sl_status_t)0x002E)
102
103
// IO/Communication Errors
104
#define SL_STATUS_IO ((sl_status_t)0x002F)
105
#define SL_STATUS_IO_TIMEOUT ((sl_status_t)0x0030)
106
#define SL_STATUS_TRANSMIT ((sl_status_t)0x0031)
107
#define SL_STATUS_TRANSMIT_UNDERFLOW ((sl_status_t)0x0032)
108
#define SL_STATUS_TRANSMIT_INCOMPLETE ((sl_status_t)0x0033)
109
#define SL_STATUS_TRANSMIT_BUSY ((sl_status_t)0x0034)
110
#define SL_STATUS_RECEIVE ((sl_status_t)0x0035)
111
#define SL_STATUS_OBJECT_READ ((sl_status_t)0x0036)
112
#define SL_STATUS_OBJECT_WRITE ((sl_status_t)0x0037)
113
#define SL_STATUS_MESSAGE_TOO_LONG ((sl_status_t)0x0038)
114
115
// ANSI C/POSIX codes
116
#define SL_STATUS_ERRNO ((sl_status_t)0x0101)
117
118
// Net-MQTT status codes
119
#define SL_STATUS_NET_MQTT_NO_CONN ((sl_status_t)0x0841)
120
#define SL_STATUS_NET_MQTT_LOST_CONN ((sl_status_t)0x0842)
121
#define SL_STATUS_NET_MQTT_PROTOCOL ((sl_status_t)0x0843)
122
#define SL_STATUS_NET_MQTT_TLS_HANDSHAKE ((sl_status_t)0x0844)
123
#define SL_STATUS_NET_MQTT_PAYLOAD_SIZE ((sl_status_t)0x0845)
124
#define SL_STATUS_NET_MQTT_NOT_SUPPORTED ((sl_status_t)0x0846)
125
#define SL_STATUS_NET_MQTT_AUTH ((sl_status_t)0x0847)
126
#define SL_STATUS_NET_MQTT_ACL_DENIED ((sl_status_t)0x0848)
127
#define SL_STATUS_NET_MQTT_MALFORMED_UTF8 ((sl_status_t)0x0849)
128
#define SL_STATUS_NET_MQTT_DUPLICATE_PROPERTY ((sl_status_t)0x084A)
129
#define SL_STATUS_NET_MQTT_QOS_NOT_SUPPORTED ((sl_status_t)0x084B)
130
#define SL_STATUS_NET_MQTT_OVERSIZE_PACKET ((sl_status_t)0x084C)
131
132
// Other codes
133
#define SL_STATUS_PRINT_INFO_MESSAGE ((sl_status_t)0x0900)
134
135
/*
136
******************************** DATA TYPES *******************************
137
*/
138
139
typedef
uint32_t
sl_status_t
;
140
141
/*
142
******************************** FUNCTIONS ********************************
143
*/
144
145
#ifdef __cplusplus
146
extern
"C"
{
147
#endif
148
149
// Placeholder for future string functions.
150
151
#ifdef __cplusplus
152
}
153
#endif
154
157
#endif
/* SL_STATUS_H */
uint32_t
sl_status_t
uint32_t sl_status_t
Definition:
sl_status.h:139
include
sl_status.h
Generated on Wed Aug 7 2024 15:21:44 for Zigbee Protocol Controller by
1.9.4