lel
Fork of XBeeLib by
Embed:
(wiki syntax)
Show/hide line numbers
Addresses.h
00001 /** 00002 * Copyright (c) 2015 Digi International Inc., 00003 * All rights not expressly granted are reserved. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this file, 00007 * You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343 00010 * ======================================================================= 00011 */ 00012 00013 #ifndef __ADDRESSES_H_ 00014 #define __ADDRESSES_H_ 00015 00016 #include <stdint.h> 00017 #include <string.h> 00018 00019 #include "Utils/Utils.h" 00020 00021 /* Some commonly used addresses */ 00022 #define ADDR64_BROADCAST ((uint64_t)0x000000000000FFFF) 00023 #define ADDR64_COORDINATOR ((uint64_t)0x0000000000000000) 00024 #define ADDR64_UNASSIGNED ((uint64_t)0xFFFFFFFFFFFFFFFF) 00025 00026 #define ADDR16_UNKNOWN ((uint16_t)0xFFFE) 00027 #define ADDR16_BROADCAST ((uint16_t)0xFFFF) 00028 00029 /** Macro used to create a 16bit data type from 2 bytes */ 00030 #define ADDR16(msb,lsb) UINT16(msb,lsb) 00031 00032 uint64_t addr64_from_uint8_t(const uint8_t * const data, bool big_endian = true); 00033 00034 #endif /* __ADDRESSES_H_ */
Generated on Sat Jul 16 2022 05:30:22 by 1.7.2