Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LoRaPHYEU868.h
00001 /** 00002 * @file LoRaPHYEU868.h 00003 * 00004 * @brief Implements LoRaPHY for European 868 MHz band 00005 * 00006 * \code 00007 * ______ _ 00008 * / _____) _ | | 00009 * ( (____ _____ ____ _| |_ _____ ____| |__ 00010 * \____ \| ___ | (_ _) ___ |/ ___) _ \ 00011 * _____) ) ____| | | || |_| ____( (___| | | | 00012 * (______/|_____)_|_|_| \__)_____)\____)_| |_| 00013 * (C)2013 Semtech 00014 * ___ _____ _ ___ _ _____ ___ ___ ___ ___ 00015 * / __|_ _/_\ / __| |/ / __/ _ \| _ \/ __| __| 00016 * \__ \ | |/ _ \ (__| ' <| _| (_) | / (__| _| 00017 * |___/ |_/_/ \_\___|_|\_\_| \___/|_|_\\___|___| 00018 * embedded.connectivity.solutions=============== 00019 * 00020 * \endcode 00021 * 00022 * 00023 * License: Revised BSD License, see LICENSE.TXT file include in the project 00024 * 00025 * Maintainer: Miguel Luis ( Semtech ), Gregory Cristian ( Semtech ) and Daniel Jaeckle ( STACKFORCE ) 00026 * 00027 * Copyright (c) 2017, Arm Limited and affiliates. 00028 * SPDX-License-Identifier: BSD-3-Clause 00029 * 00030 */ 00031 00032 #ifndef MBED_OS_LORAPHY_EU868_H_ 00033 #define MBED_OS_LORAPHY_EU868_H_ 00034 00035 #include "LoRaPHY.h" 00036 00037 /*! 00038 * LoRaMac maximum number of channels 00039 */ 00040 #define EU868_MAX_NB_CHANNELS 16 00041 00042 /*! 00043 * Maximum number of bands 00044 * 00045 * We have broken down EU-868 MHz BAND 2 into two parts. That's why 00046 * total number of sub-bands is 6. 00047 * from 863 MHz to 865 MHz region is part of BAND 2, however 00048 * we call it Band-5 here. Duty cycle limit is 0.1 % in this sub band. 00049 */ 00050 #define EU868_MAX_NB_BANDS 6 00051 00052 #define EU868_CHANNEL_MASK_SIZE 1 00053 00054 class LoRaPHYEU868 : public LoRaPHY { 00055 00056 public: 00057 LoRaPHYEU868(LoRaWANTimeHandler &lora_time); 00058 virtual ~LoRaPHYEU868(); 00059 00060 private: 00061 /*! 00062 * LoRaMAC channels 00063 */ 00064 channel_params_t channels[EU868_MAX_NB_CHANNELS]; 00065 00066 /*! 00067 * LoRaMac bands 00068 */ 00069 band_t bands[EU868_MAX_NB_BANDS]; 00070 00071 /*! 00072 * LoRaMac channels mask 00073 */ 00074 uint16_t channel_mask[EU868_CHANNEL_MASK_SIZE]; 00075 00076 /*! 00077 * LoRaMac default channel mask 00078 */ 00079 uint16_t default_channel_mask[EU868_CHANNEL_MASK_SIZE]; 00080 }; 00081 00082 #endif /* MBED_OS_LORAPHY_EU868_H_ */
Generated on Tue Jul 12 2022 18:18:38 by
