MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / isNarrowDataRateIndex

Function isNarrowDataRateIndex

pkg/networkserver/mac/adr.go:193–203  ·  view source on GitHub ↗
(phy *band.Band, idx ttnpb.DataRateIndex)

Source from the content-addressed store, hash-verified

191}
192
193func isNarrowDataRateIndex(phy *band.Band, idx ttnpb.DataRateIndex) (lora, ok bool) {
194 dr, ok := phy.DataRates[idx]
195 if !ok {
196 return false, false
197 }
198 mod := dr.Rate.GetLora()
199 if mod == nil {
200 return false, false
201 }
202 return true, mod.Bandwidth == 125_000
203}
204
205func demodulationFloorStep(phy *band.Band, from, to ttnpb.DataRateIndex) float32 {
206 fromDR, ok := phy.DataRates[from]

Callers 1

adrSteerDeviceChannelsFunction · 0.85

Calls 1

GetLoraMethod · 0.80

Tested by

no test coverage detected