Documentation ¶
Index ¶
- Variables
- func Guess(frequency uint64) string
- type ADRConfig
- type FrequencyPlan
- func (f *FrequencyPlan) ADRSettings(dataRate string, txPower int, snr float32, deviceMargin float32) (desiredDataRate string, desiredTxPower int, err error)
- func (f *FrequencyPlan) GetDataRateIndexFor(dataRate string) (int, error)
- func (f *FrequencyPlan) GetDataRateStringForIndex(drIdx int) (string, error)
- func (f *FrequencyPlan) GetTxPowerIndexFor(txPower int) (int, error)
Constants ¶
This section is empty.
Variables ¶
ErrADRUnavailable is returned when ADR is not available
Functions ¶
Types ¶
type FrequencyPlan ¶
FrequencyPlan includes band configuration and CFList
func Get ¶
func Get(region string) (frequencyPlan FrequencyPlan, err error)
Get the frequency plan for the given region
func (*FrequencyPlan) ADRSettings ¶
func (f *FrequencyPlan) ADRSettings(dataRate string, txPower int, snr float32, deviceMargin float32) (desiredDataRate string, desiredTxPower int, err error)
ADRSettings gets the ADR settings given a dataRate, txPower, SNR and device margin
func (*FrequencyPlan) GetDataRateIndexFor ¶
func (f *FrequencyPlan) GetDataRateIndexFor(dataRate string) (int, error)
func (*FrequencyPlan) GetDataRateStringForIndex ¶
func (f *FrequencyPlan) GetDataRateStringForIndex(drIdx int) (string, error)
func (*FrequencyPlan) GetTxPowerIndexFor ¶
func (f *FrequencyPlan) GetTxPowerIndexFor(txPower int) (int, error)
Click to show internal directories.
Click to hide internal directories.