(phy *band.Band, idx ttnpb.DataRateIndex)
| 191 | } |
| 192 | |
| 193 | func 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 | |
| 205 | func demodulationFloorStep(phy *band.Band, from, to ttnpb.DataRateIndex) float32 { |
| 206 | fromDR, ok := phy.DataRates[from] |
no test coverage detected