forked from attie/libxbee3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
xbee_int.h
54 lines (39 loc) · 1.48 KB
/
xbee_int.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef XBEE_INT_H
#define XBEE_INT_H
/*
libxbee - a C/C++ library to aid the use of Digi's XBee wireless modules
running in API mode.
Copyright (C) 2009 onwards Attie Grande (attie@attie.co.uk)
libxbee is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
libxbee is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
extern struct xbee_ll_head *xbeeList;
extern struct xbee_ll_head *needsFree;
struct xbee_interface {
struct xbee_rxInfo *rx;
struct xbee_txInfo *tx;
struct xbee_modeConType *conTypes;
};
struct xbee {
int die;
struct xbee_frameBlock *fBlock;
#ifndef XBEE_DISABLE_LOGGING
struct xbee_log *log;
#endif /* !XBEE_DISABLE_LOGGING */
const struct xbee_mode *mode;
void *modeData; /* for use by the mode */
struct xbee_netInfo *netInfo; /* used by the network interface, if not NULL, it is active */
struct xbee_interface iface;
void *userData;
};
xbee_err xbee_alloc(struct xbee **nXbee);
xbee_err xbee_free(struct xbee *xbee);
#endif /* XBEE_INT_H */