Arduino LMIC 6.0.1
Arduino LoRaWAN(r) MAC in C
Loading...
Searching...
No Matches
lorabase_kr920.h
1/*
2* Copyright (c) 2014-2016 IBM Corporation.
3* All rights reserved.
4*
5* Copyright (c) 2017, 2019 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_kr920_h_
32#define _lorabase_kr920_h_
33
34#ifndef _LMIC_CONFIG_PRECONDITIONS_H_
35# include "lmic_config_preconditions.h"
36#endif
37
38/****************************************************************************\
39|
40| Basic definitions for KR920 (always in scope)
41|
42\****************************************************************************/
43
44enum _dr_kr920_t {
45 KR920_DR_SF12 = 0, // DR0
46 KR920_DR_SF11, // DR1
47 KR920_DR_SF10, // DR2
48 KR920_DR_SF9, // DR3
49 KR920_DR_SF8, // DR4
50 KR920_DR_SF7, // DR5
51 KR920_DR_NONE
52};
53
54// There is no dwell-time or duty-cycle limitation for IN
55//
56// max power: 30dBM
57//
58// freq datarates
59enum {
60 KR920_F1 = 922100000, // SF7-12 (DR0-5)
61 KR920_F2 = 922300000, // SF7-12 (DR0-5)
62 KR920_F3 = 922500000, // SF7-12 (DR0-5)
63 KR920_FBCN = 923100000, // beacon/ping
64 KR920_F14DBM = 922100000, // Allows 14 dBm (not 10) if >= this.
65 KR920_FDOWN = 921900000, // RX2 downlink frequency
66};
67enum {
68 KR920_FREQ_MIN = 920900000,
69 KR920_FREQ_MAX = 923300000
70};
71enum {
72 KR920_TX_EIRP_MAX_DBM = 14, // 14 dBm for most
73 KR920_TX_EIRP_MAX_DBM_LOW = 10, // 10 dBm for some
74};
75enum { DR_PAGE_KR920 = 0x10 * (LMIC_REGION_kr920 - 1) };
76
77enum { KR920_LMIC_REGION_EIRP = 1 }; // region uses EIRP
78
79enum { KR920_LBT_US = 128 }; // microseconds of LBT time.
80
81enum { KR920_LBT_DB_MAX = -80 }; // maximum channel strength in dB; if TX
82 // we measure more than this, we don't tx.
83
84#endif /* _lorabase_in866_h_ */