Arduino LMIC
6.0.1
Arduino LoRaWAN(r) MAC in C
Toggle main menu visibility
Loading...
Searching...
No Matches
lorabase_eu868.h
1
/*
2
* Copyright (c) 2014-2016 IBM Corporation.
3
* All rights reserved.
4
*
5
* Copyright (c) 2017 MCCI Corporation
6
* All rights reserved.
7
*
8
* Redistribution and use in source and binary forms, with or without
9
* modification, are permitted provided that the following conditions are met:
10
* * Redistributions of source code must retain the above copyright
11
* notice, this list of conditions and the following disclaimer.
12
* * Redistributions in binary form must reproduce the above copyright
13
* notice, this list of conditions and the following disclaimer in the
14
* documentation and/or other materials provided with the distribution.
15
* * Neither the name of the <organization> nor the
16
* names of its contributors may be used to endorse or promote products
17
* derived from this software without specific prior written permission.
18
*
19
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
* DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
23
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
26
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
*/
30
31
#ifndef _lorabase_eu868_h_
32
#define _lorabase_eu868_h_
33
34
#ifndef _LMIC_CONFIG_PRECONDITIONS_H_
35
# include "lmic_config_preconditions.h"
36
#endif
37
38
/****************************************************************************\
39
|
40
| Basic definitions for EU868 (always in scope)
41
|
42
\****************************************************************************/
43
44
//
45
// Default frequency plan for EU 868MHz ISM band
46
// data rates
47
// this is a little confusing: the integer values of these constants are the
48
// DataRates from the LoRaWAN Regional Parmaeter spec. The names are just
49
// convenient indications, so we can use them in the rare case that we need to
50
// choose a DataRate by SF and configuration, not by DR code.
51
52
enum
_dr_eu868_t {
53
EU868_DR_SF12 = 0,
54
EU868_DR_SF11,
55
EU868_DR_SF10,
56
EU868_DR_SF9,
57
EU868_DR_SF8,
58
EU868_DR_SF7,
59
EU868_DR_SF7B,
60
EU868_DR_FSK,
61
EU868_DR_NONE
62
};
63
64
// Bands:
65
// g1 : 1% 14dBm
66
// g2 : 0.1% 14dBm
67
// g3 : 10% 27dBm
68
// freq band datarates
69
enum
{
70
EU868_F1 = 868100000,
// g1 SF7-12
71
EU868_F2 = 868300000,
// g1 SF7-12 FSK SF7/250
72
EU868_F3 = 868500000,
// g1 SF7-12
73
EU868_F4 = 868850000,
// g2 SF7-12
74
EU868_F5 = 869050000,
// g2 SF7-12
75
EU868_F6 = 869525000,
// g3 SF7-12
76
EU868_J4 = 864100000,
// g2 SF7-12 used during join
77
EU868_J5 = 864300000,
// g2 SF7-12 ditto
78
EU868_J6 = 864500000,
// g2 SF7-12 ditto
79
};
80
enum
{
81
EU868_FREQ_MIN = 863000000,
82
EU868_FREQ_MAX = 870000000
83
};
84
enum
{
85
EU868_TX_EIRP_MAX_DBM = 16
// 16 dBm EIRP. So subtract 3 dBm for a 3 dBi antenna.
86
};
87
88
enum
{ EU868_LMIC_REGION_EIRP = 1 };
// region uses EIRP
89
90
enum
{ DR_PAGE_EU868 = 0x10 * (LMIC_REGION_eu868 - 1) };
91
92
#endif
/* _lorabase_eu868_h_ */
src
lmic
lorabase_eu868.h
Generated on
for Arduino LMIC by
1.18.0