Arduino LMIC 6.0.1
Arduino LoRaWAN(r) MAC in C
Loading...
Searching...
No Matches
lorabase_in866.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_in866_h_
32#define _lorabase_in866_h_
33
34#ifndef _LMIC_CONFIG_PRECONDITIONS_H_
35# include "lmic_config_preconditions.h"
36#endif
37
38/****************************************************************************\
39|
40| Basic definitions for IN866 (always in scope)
41|
42\****************************************************************************/
43
44enum _dr_in866_t {
45 IN866_DR_SF12 = 0, // DR0
46 IN866_DR_SF11, // DR1
47 IN866_DR_SF10, // DR2
48 IN866_DR_SF9, // DR3
49 IN866_DR_SF8, // DR4
50 IN866_DR_SF7, // DR5
51 IN866_DR_RFU, // -
52 IN866_DR_FSK, // DR7
53 IN866_DR_NONE
54};
55
56// There is no dwell-time or duty-cycle limitation for IN
57//
58// max power: 30dBM
59//
60// freq datarates
61enum {
62 IN866_F1 = 865062500, // SF7-12 (DR0-5)
63 IN866_F2 = 865402500, // SF7-12 (DR0-5)
64 IN866_F3 = 865985000, // SF7-12 (DR0-5)
65 IN866_FB = 866550000, // beacon/ping
66};
67enum {
68 IN866_FREQ_MIN = 865000000,
69 IN866_FREQ_MAX = 867000000
70};
71enum {
72 IN866_TX_EIRP_MAX_DBM = 30 // 30 dBm
73};
74enum { DR_PAGE_IN866 = 0x10 * (LMIC_REGION_in866 - 1) };
75
76enum { IN866_LMIC_REGION_EIRP = 1 }; // region uses EIRP
77
78#endif /* _lorabase_in866_h_ */