Digi XBee(R) ANSI C Host Library
tx_status.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 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. 11001 Bren Road East, Minnetonka, MN 55343
10  * =======================================================================
11  */
12 
20 #ifndef __XBEE_TX_STATUS_H
21 #define __XBEE_TX_STATUS_H
22 
23 #include "xbee/device.h"
24 #include "xbee/delivery_status.h"
25 
26 #if (!XBEE_WIFI_ENABLED) && (!XBEE_CELLULAR_ENABLED)
27  #error "At least one of XBEE_WIFI_ENABLED and XBEE_CELLULAR_ENABLED " \
28  "must be defined as non-zero to use this header."
29 #endif
30 
32 #define XBEE_FRAME_TX_STATUS 0x89
33 
35 
36 typedef XBEE_PACKED(xbee_frame_tx_status_t, {
37  uint8_t frame_type;
38  uint8_t frame_id;
39  uint8_t delivery;
41 
42 
52  const void FAR *frame, uint16_t length, void FAR *context);
53 
55 
56 // If compiling in Dynamic C, automatically #use the appropriate C file.
57 #ifdef __DC__
58  #use "xbee_tx_status.c"
59 #endif
60 
61 #endif /* __XBEE_TX_STATUS_H */
62 
#define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
< XBEE_FRAME_TX_STATUS (0x89)
Definition: tx_status.h:40
unsigned short uint16_t
16-bit unsigned integer
Definition: platform_config.h:41
unsigned char uint8_t
8-bit unsigned integer
Definition: platform_config.h:39
int xbee_frame_dump_tx_status(xbee_dev_t *xbee, const void FAR *frame, uint16_t length, void FAR *context)
Frame handler for 0x89 (XBEE_FRAME_TX_STATUS) frames – dumps transmit status to STDOUT for debugging...
Definition: xbee_tx_status.c:25
Definition: device.h:361
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42