Arduino LMIC
6.0.1
Arduino LoRaWAN(r) MAC in C
Toggle main menu visibility
Loading...
Searching...
No Matches
lorabase_us915.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_us915_h_
32
#define _lorabase_us915_h_
33
34
#ifndef _LMIC_CONFIG_PRECONDITIONS_H_
35
# include "lmic_config_preconditions.h"
36
#endif
37
38
/****************************************************************************\
39
|
40
| Basic definitions for US915 (always in scope)
41
|
42
\****************************************************************************/
43
44
// Frequency plan for US 915MHz ISM band
45
// data rates
46
enum
_dr_us915_t {
47
US915_DR_SF10 = 0,
48
US915_DR_SF9,
49
US915_DR_SF8,
50
US915_DR_SF7,
51
US915_DR_SF8C,
52
US915_DR_NONE,
53
// Devices "behind a router" (and upper half of DR list):
54
US915_DR_SF12CR = 8,
55
US915_DR_SF11CR,
56
US915_DR_SF10CR,
57
US915_DR_SF9CR,
58
US915_DR_SF8CR,
59
US915_DR_SF7CR
60
};
61
62
// Default frequency plan for US 915MHz
63
enum
{
64
US915_125kHz_UPFBASE = 902300000,
65
US915_125kHz_UPFSTEP = 200000,
66
US915_500kHz_UPFBASE = 903000000,
67
US915_500kHz_UPFSTEP = 1600000,
68
US915_500kHz_DNFBASE = 923300000,
69
US915_500kHz_DNFSTEP = 600000
70
};
71
enum
{
72
US915_FREQ_MIN = 902000000,
73
US915_FREQ_MAX = 928000000
74
};
75
enum
{
76
US915_TX_MAX_DBM = 30
// 30 dBm (but not EIRP): assumes we're
77
// on an 64-channel bandplan. See code
78
// that computes tx power.
79
};
80
81
enum
{
82
US915_LinkAdrReq_POW_MAX_1_0_2 = 0xA,
83
US915_LinkAdrReq_POW_MAX_1_0_3 = 0xE,
84
};
85
86
enum
{ DR_PAGE_US915 = 0x10 * (LMIC_REGION_us915 - 1) };
87
88
enum
{ US915_LMIC_REGION_EIRP = 0 };
// region doesn't use EIRP, uses tx power
89
90
#endif
/* _lorabase_us915_h_ */
src
lmic
lorabase_us915.h
Generated on
for Arduino LMIC by
1.18.0