Documentation ¶
Index ¶
- func GetDataRateIndex(uplink bool, v DataRateGetter, b band.Band) (int, error)
- func GetGatewayID(v GatewayIDGetter) lorawan.EUI64
- func SetDownlinkTXInfoDataRate(txInfo *gw.DownlinkTXInfo, dr int, b band.Band) error
- func SetUplinkTXInfoDataRate(txInfo *gw.UplinkTXInfo, dr int, b band.Band) error
- type DataRateGetter
- type GatewayIDGetter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDataRateIndex ¶
GetDataRateIndex returns the data-rate index.
func GetGatewayID ¶
func GetGatewayID(v GatewayIDGetter) lorawan.EUI64
GetGatewayID returns the typed gateway ID.
func SetDownlinkTXInfoDataRate ¶
SetDownlinkTXInfoDataRate sets the DownlinkTXInfo data-rate.
func SetUplinkTXInfoDataRate ¶
SetUplinkTXInfoDataRate sets the UplinkTXInfo data-rate.
Types ¶
type DataRateGetter ¶
type DataRateGetter interface { GetModulation() common.Modulation GetLoraModulationInfo() *gw.LoRaModulationInfo GetFskModulationInfo() *gw.FSKModulationInfo }
DataRateGetter provides an interface for getting the data-rate.
type GatewayIDGetter ¶
type GatewayIDGetter interface {
GetGatewayId() []byte
}
GatewayIDGetter provides a GatewayId getter interface.
Click to show internal directories.
Click to hide internal directories.