Arduino LMIC 6.0.1
Arduino LoRaWAN(r) MAC in C
Loading...
Searching...
No Matches
lorabase_au915.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_au915_h_
32#define _lorabase_au915_h_
33
34#ifndef _LMIC_CONFIG_PRECONDITIONS_H_
35# include "lmic_config_preconditions.h"
36#endif
37
38/****************************************************************************\
39|
40| Basic definitions for AU 915 (always in scope)
41|
42\****************************************************************************/
43
44// Frequency plan for AU 915 MHz
45enum _dr_au915_t {
46 AU915_DR_SF12 = 0,
47 AU915_DR_SF11,
48 AU915_DR_SF10,
49 AU915_DR_SF9,
50 AU915_DR_SF8,
51 AU915_DR_SF7,
52 AU915_DR_SF8C,
53 AU915_DR_NONE,
54 // Devices behind a router:
55 AU915_DR_SF12CR = 8,
56 AU915_DR_SF11CR,
57 AU915_DR_SF10CR,
58 AU915_DR_SF9CR,
59 AU915_DR_SF8CR,
60 AU915_DR_SF7CR
61};
62
63// Default frequency plan for AU 915MHz
64enum {
65 AU915_125kHz_UPFBASE = 915200000,
66 AU915_125kHz_UPFSTEP = 200000,
67 AU915_500kHz_UPFBASE = 915900000,
68 AU915_500kHz_UPFSTEP = 1600000,
69 AU915_500kHz_DNFBASE = 923300000,
70 AU915_500kHz_DNFSTEP = 600000
71};
72enum {
73 AU915_FREQ_MIN = 915000000,
74 AU915_FREQ_MAX = 928000000
75};
76enum {
77 AU915_TX_EIRP_MAX_DBM = 30 // 30 dBm
78};
79enum {
80 // initial value of UplinkDwellTime before TxParamSetupReq received.
81 AU915_INITIAL_TxParam_UplinkDwellTime = 1,
82 AU915_UPLINK_DWELL_TIME_osticks = sec2osticks(20),
83};
84
85enum { DR_PAGE_AU915 = 0x10 * (LMIC_REGION_au915 - 1) };
86
87enum { AU915_LMIC_REGION_EIRP = 1 }; // region uses EIRP
88
89#endif /* _lorabase_au915_h_ */