Digi XBee(R) ANSI C Host Library
reg_descr.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2010-2012 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 
25 #ifndef __XBEE_REG_DESCR
26 #define __XBEE_REG_DESCR
27 
28 #include "xbee/platform.h"
29 
31 
35 typedef enum
36 {
37  XBEE_RCI_TYPE_UINT32,
38  XBEE_RCI_TYPE_HEX32,
39  XBEE_RCI_TYPE_STRING,
40  XBEE_RCI_TYPE_BIN, // Bin turns into XBEE_RCI_TYPE_STRING for RCI, but formatted as 0x
41  // followed by hex digits.
42  XBEE_RCI_TYPE_ADDR64,
44 
46 extern const char *_xbee_rci_types[];
47 
48 
49 
50 typedef struct _xbee_reg_descr_t
51 {
57  int is_state;
60  const char *alias;
80 #ifdef IDIGI_USE_XBEE
81  const char *rci_element;
84  const char *desc;
86  const char *units;
87  // Note: these are stored as strings since it results in less storage
88  // use compared with 32-bit numbers, plus the format is correct for RCI.
90  const char *min;
92  const char *max;
93 #endif
101 
102 
103 
104 extern const FAR _xbee_reg_descr_t _xbee_reg_table[];
105 
107 
108 // If compiling in Dynamic C, automatically #use the appropriate C file.
109 #ifdef __DC__
110  #use "xbee_reg_descr.c"
111 #endif
112 
113 #endif // __XBEE_REG_DESCR
114 
#define FAR
On platforms with "far" pointers, define to the proper keyword; empty definition if not required...
Definition: platform.h:396
uint16_t sxa_len
Length of cached field value.
Definition: reg_descr.h:97
#define XBEE_BEGIN_DECLS
Macro defined to.
Definition: platform.h:41
Common header for Hardware Abstraction Layer.
const char * alias
Two-character AT command string for this register (except entry for <dest_addr> is "DH/DL")...
Definition: reg_descr.h:60
_xbee_rci_type_t rci_type
RCI type.
Definition: reg_descr.h:79
const char * _xbee_rci_types[]
Table to map _xbee_rci_type_t to RCI type string.
Definition: xbee_reg_descr.c:73
unsigned short uint16_t
16-bit unsigned integer
Definition: platform_config.h:41
uint16_t cxval
Custom xbee_type value (bitfield) for query descriptor.
Definition: reg_descr.h:77
_xbee_rci_type_t
iDigi RCI type names used by do_command type=zigbee.
Definition: reg_descr.h:35
Definition: reg_descr.h:50
uint16_t sxa_cache_group
SXA cache group (bitfield), or SXA_CACHED_MISC if not grouped.
Definition: reg_descr.h:99
int is_state
1 if a "state", 0 if a "setting", or other values for special purposes.
Definition: reg_descr.h:57
uint16_t sxa_offs
Offset in SXA node structure of cached field value.
Definition: reg_descr.h:95
#define XBEE_END_DECLS
Macro defined to.
Definition: platform.h:42