Digi XBee(R) ANSI C Host Library
delivery_status.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017-2019 Digi International Inc.,
3  * All rights not expressly granted are reserved.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
7  * You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * Digi International Inc., 9350 Excelsior Blvd., Suite 700, Hopkins, MN 55343
10  * ===========================================================================
11  */
12 
20 #ifndef __XBEE_DELIVERY_STATUS_H
21 #define __XBEE_DELIVERY_STATUS_H
22 
24 
30  #define XBEE_TX_DELIVERY_SUCCESS 0x00
32 
35  #define XBEE_TX_DELIVERY_MAC_ACK_FAIL 0x01
36 
38  #define XBEE_TX_DELIVERY_CCA_FAIL 0x02
39 
42  #define XBEE_TX_DELIVERY_STACK_NOT_READY 0x03
43 
46  #define XBEE_TX_DELIVERY_PHYSICAL_ERROR 0x04
47 
49  #define XBEE_TX_DELIVERY_NO_BUFFERS 0x18
50 
52  #define XBEE_TX_DELIVERY_NET_ACK_FAIL 0x21
53 
55  #define XBEE_TX_DELIVERY_NOT_JOINED 0x22
56 
58  #define XBEE_TX_DELIVERY_INVALID_EP 0x2C
59 
61  #define XBEE_TX_DELIVERY_INTERNAL_ERROR 0x31
62 
65  #define XBEE_TX_DELIVERY_RESOURCE_ERROR 0x32
66 
68  #define XBEE_TX_DELIVERY_NO_SECURE_SESSION 0x34
69 
71  #define XBEE_TX_DELIVERY_ENCRYPTION_FAILURE 0x35
72 
74  #define XBEE_TX_DELIVERY_PAYLOAD_TOO_BIG 0x74
75 
77  #define XBEE_TX_DELIVERY_UNREQ_INDIRECT_MSG 0x75
78 
81  #define XBEE_TX_DELIVERY_SOCKET_CREATION_FAIL 0x76
82 
85  #define XBEE_TX_DELIVERY_CONNECTION_DNE 0x77
86 
88  #define XBEE_TX_DELIVERY_INVALID_UDP_PORT 0x78
89 
91  #define XBEE_TX_DELIVERY_INVALID_TCP_PORT 0x79
92 
94  #define XBEE_TX_DELIVERY_INVALID_HOST_ADDR 0x7A
95 
97  #define XBEE_TX_DELIVERY_INVALID_DATA_MODE 0x7B
98 
100  #define XBEE_TX_DELIVERY_INVALID_INTERFACE 0x7C
101 
103  #define XBEE_TX_DELIVERY_INTERFACE_BLOCKED 0x7D
104 
106  #define XBEE_TX_DELIVERY_CONNECTION_REFUSED 0x80
107 
109  #define XBEE_TX_DELIVERY_CONNECTION_LOST 0x81
110 
112  #define XBEE_TX_DELIVERY_NO_SERVER 0x82
113 
115  #define XBEE_TX_DELIVERY_SOCKET_CLOSED 0x83
116 
118  #define XBEE_TX_DELIVERY_UNKNOWN_SERVER 0x84
119 
121  #define XBEE_TX_DELIVERY_UNKNOWN_ERROR 0x85
122 
124  #define XBEE_TX_DELIVERY_INVALID_TLS_CONFIG 0x86
125 
127  #define XBEE_TX_DELIVERY_KEY_NOT_AUTHORIZED 0xBB
128 
130 
132 #define XBEE_TX_DELIVERY_STR_BUF_SIZE 40
133 
134 const char *xbee_tx_delivery_str(uint8_t status,
135  char buffer[XBEE_TX_DELIVERY_STR_BUF_SIZE]);
136 
138 
140 
141 #endif // __XBEE_DELIVERY_STATUS_H
const char * xbee_tx_delivery_str(uint8_t status, char buffer[XBEE_TX_DELIVERY_STR_BUF_SIZE])
Get a description of an XBEE_TX_DELIVERY_xxx value (returned in xbee_frame_tx_status_t and xbee_frame...
Definition: xbee_delivery_status.c:27
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
unsigned char uint8_t
8-bit unsigned integer
Definition: platform_config.h:39
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42
#define XBEE_TX_DELIVERY_STR_BUF_SIZE
Buffer size used for xbee_tx_delivery_str().
Definition: delivery_status.h:132