tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/lora/lorawan/region/au915.go (about) 1 package region 2 3 import "tinygo.org/x/drivers/lora" 4 5 const ( 6 AU915_DEFAULT_PREAMBLE_LEN = 8 7 AU915_DEFAULT_TX_POWER_DBM = 20 8 ) 9 10 type ChannelAU struct { 11 channel 12 } 13 14 func (c *ChannelAU) Next() bool { 15 return false 16 } 17 18 type SettingsAU915 struct { 19 settings 20 } 21 22 func AU915() *SettingsAU915 { 23 return &SettingsAU915{settings: settings{ 24 joinRequestChannel: &ChannelAU{channel: channel{lora.MHz_916_8, 25 lora.Bandwidth_125_0, 26 lora.SpreadingFactor9, 27 lora.CodingRate4_5, 28 AU915_DEFAULT_PREAMBLE_LEN, 29 AU915_DEFAULT_TX_POWER_DBM}}, 30 joinAcceptChannel: &ChannelAU{channel: channel{lora.MHz_923_3, 31 lora.Bandwidth_500_0, 32 lora.SpreadingFactor9, 33 lora.CodingRate4_5, 34 AU915_DEFAULT_PREAMBLE_LEN, 35 AU915_DEFAULT_TX_POWER_DBM}}, 36 uplinkChannel: &ChannelAU{channel: channel{lora.MHz_916_8, 37 lora.Bandwidth_125_0, 38 lora.SpreadingFactor9, 39 lora.CodingRate4_5, 40 AU915_DEFAULT_PREAMBLE_LEN, 41 AU915_DEFAULT_TX_POWER_DBM}}, 42 }} 43 } 44 45 func Next(c *ChannelAU) bool { 46 return false 47 }