Library to easily communicate with XBee modules.

Fork of XBeeLib by Digi International Inc.

Committer:
basvuyk
Date:
Tue Mar 27 14:13:12 2018 +0000
Revision:
10:273032d9299a
Parent:
4:629712865107
Slave V1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
spastor 0:fcaad0dfa051 1 /**
spastor 0:fcaad0dfa051 2 * Copyright (c) 2015 Digi International Inc.,
spastor 0:fcaad0dfa051 3 * All rights not expressly granted are reserved.
spastor 0:fcaad0dfa051 4 *
spastor 0:fcaad0dfa051 5 * This Source Code Form is subject to the terms of the Mozilla Public
spastor 0:fcaad0dfa051 6 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
spastor 0:fcaad0dfa051 7 * You can obtain one at http://mozilla.org/MPL/2.0/.
spastor 0:fcaad0dfa051 8 *
spastor 0:fcaad0dfa051 9 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343
spastor 0:fcaad0dfa051 10 * =======================================================================
spastor 0:fcaad0dfa051 11 */
spastor 4:629712865107 12
spastor 3:8662ebe83570 13 #ifndef __ADDRESSES_H_
spastor 0:fcaad0dfa051 14 #define __ADDRESSES_H_
spastor 0:fcaad0dfa051 15
spastor 0:fcaad0dfa051 16 #include <stdint.h>
spastor 0:fcaad0dfa051 17 #include <string.h>
spastor 0:fcaad0dfa051 18
spastor 0:fcaad0dfa051 19 #include "Utils/Utils.h"
spastor 0:fcaad0dfa051 20
spastor 0:fcaad0dfa051 21 /* Some commonly used addresses */
spastor 0:fcaad0dfa051 22 #define ADDR64_BROADCAST ((uint64_t)0x000000000000FFFF)
spastor 0:fcaad0dfa051 23 #define ADDR64_COORDINATOR ((uint64_t)0x0000000000000000)
spastor 0:fcaad0dfa051 24 #define ADDR64_UNASSIGNED ((uint64_t)0xFFFFFFFFFFFFFFFF)
spastor 0:fcaad0dfa051 25
spastor 0:fcaad0dfa051 26 #define ADDR16_UNKNOWN ((uint16_t)0xFFFE)
spastor 0:fcaad0dfa051 27 #define ADDR16_BROADCAST ((uint16_t)0xFFFF)
spastor 0:fcaad0dfa051 28
spastor 0:fcaad0dfa051 29 /** Macro used to create a 16bit data type from 2 bytes */
spastor 0:fcaad0dfa051 30 #define ADDR16(msb,lsb) UINT16(msb,lsb)
spastor 0:fcaad0dfa051 31
spastor 0:fcaad0dfa051 32 uint64_t addr64_from_uint8_t(const uint8_t * const data, bool big_endian = true);
spastor 0:fcaad0dfa051 33
spastor 0:fcaad0dfa051 34 #endif /* __ADDRESSES_H_ */