Documentation ¶
Index ¶
- Constants
- func DecrementDataRate(region Region, datarate uint8) uint8
- func GetInfo(Code int) models.Informations
- type As923
- func (as *As923) DataRateSupported(datarate uint8) error
- func (as *As923) FrequencySupported(frequency uint32) error
- func (as *As923) GetChannels() []c.Channel
- func (as *As923) GetCodR(datarate uint8) string
- func (as *As923) GetCode() int
- func (as *As923) GetDataRate(datarate uint8) (string, string)
- func (as *As923) GetDataRateBeacon() uint8
- func (as *As923) GetFrequencyBeacon() uint32
- func (as *As923) GetMaxDataRate() uint8
- func (as *As923) GetMinDataRate() uint8
- func (as *As923) GetNbReservedChannels() int
- func (as *As923) GetParameters() models.Parameters
- func (as *As923) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (as *As923) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (as *As923) RX1DROffsetSupported(offset uint8) error
- func (as *As923) Setup()
- func (as *As923) SetupInfoRequest(indexChannel int) (string, int)
- func (as *As923) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Au915
- func (au *Au915) DataRateSupported(datarate uint8) error
- func (au *Au915) FrequencySupported(frequency uint32) error
- func (au *Au915) GetChannels() []c.Channel
- func (au *Au915) GetCodR(datarate uint8) string
- func (au *Au915) GetCode() int
- func (au *Au915) GetDataRate(datarate uint8) (string, string)
- func (au *Au915) GetDataRateBeacon() uint8
- func (au *Au915) GetFrequencyBeacon() uint32
- func (au *Au915) GetMaxDataRate() uint8
- func (au *Au915) GetMinDataRate() uint8
- func (au *Au915) GetNbReservedChannels() int
- func (au *Au915) GetParameters() models.Parameters
- func (au *Au915) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (au *Au915) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (au *Au915) RX1DROffsetSupported(offset uint8) error
- func (au *Au915) Setup()
- func (au *Au915) SetupInfoRequest(indexChannel int) (string, int)
- func (au *Au915) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Cn470
- func (cn *Cn470) DataRateSupported(datarate uint8) error
- func (cn *Cn470) FrequencySupported(frequency uint32) error
- func (cn *Cn470) GetChannels() []c.Channel
- func (cn *Cn470) GetCodR(datarate uint8) string
- func (cn *Cn470) GetCode() int
- func (cn *Cn470) GetDataRate(datarate uint8) (string, string)
- func (cn *Cn470) GetDataRateBeacon() uint8
- func (cn *Cn470) GetFrequencyBeacon() uint32
- func (cn *Cn470) GetMaxDataRate() uint8
- func (cn *Cn470) GetMinDataRate() uint8
- func (cn *Cn470) GetNbReservedChannels() int
- func (cn *Cn470) GetParameters() models.Parameters
- func (cn *Cn470) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (cn *Cn470) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (cn *Cn470) RX1DROffsetSupported(offset uint8) error
- func (cn *Cn470) Setup()
- func (cn *Cn470) SetupInfoRequest(indexChannel int) (string, int)
- func (cn *Cn470) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Cn779
- func (cn *Cn779) DataRateSupported(datarate uint8) error
- func (cn *Cn779) FrequencySupported(frequency uint32) error
- func (cn *Cn779) GetChannels() []c.Channel
- func (cn *Cn779) GetCodR(datarate uint8) string
- func (cn *Cn779) GetCode() int
- func (cn *Cn779) GetDataRate(datarate uint8) (string, string)
- func (cn *Cn779) GetDataRateBeacon() uint8
- func (cn *Cn779) GetFrequencyBeacon() uint32
- func (cn *Cn779) GetMaxDataRate() uint8
- func (cn *Cn779) GetMinDataRate() uint8
- func (cn *Cn779) GetNbReservedChannels() int
- func (cn *Cn779) GetParameters() models.Parameters
- func (cn *Cn779) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (cn *Cn779) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (cn *Cn779) RX1DROffsetSupported(offset uint8) error
- func (cn *Cn779) Setup()
- func (cn *Cn779) SetupInfoRequest(indexChannel int) (string, int)
- func (cn *Cn779) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Eu433
- func (eu *Eu433) DataRateSupported(datarate uint8) error
- func (eu *Eu433) FrequencySupported(frequency uint32) error
- func (eu *Eu433) GetChannels() []c.Channel
- func (eu *Eu433) GetCodR(datarate uint8) string
- func (eu *Eu433) GetCode() int
- func (eu *Eu433) GetDataRate(datarate uint8) (string, string)
- func (eu *Eu433) GetDataRateBeacon() uint8
- func (eu *Eu433) GetFrequencyBeacon() uint32
- func (eu *Eu433) GetMaxDataRate() uint8
- func (eu *Eu433) GetMinDataRate() uint8
- func (eu *Eu433) GetNbReservedChannels() int
- func (eu *Eu433) GetParameters() models.Parameters
- func (eu *Eu433) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (eu *Eu433) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (eu *Eu433) RX1DROffsetSupported(offset uint8) error
- func (eu *Eu433) Setup()
- func (eu *Eu433) SetupInfoRequest(indexChannel int) (string, int)
- func (eu *Eu433) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Eu868
- func (eu *Eu868) DataRateSupported(datarate uint8) error
- func (eu *Eu868) FrequencySupported(frequency uint32) error
- func (eu *Eu868) GetChannels() []c.Channel
- func (eu *Eu868) GetCodR(datarate uint8) string
- func (eu *Eu868) GetCode() int
- func (eu *Eu868) GetDataRate(datarate uint8) (string, string)
- func (eu *Eu868) GetDataRateBeacon() uint8
- func (eu *Eu868) GetFrequencyBeacon() uint32
- func (eu *Eu868) GetMaxDataRate() uint8
- func (eu *Eu868) GetMinDataRate() uint8
- func (eu *Eu868) GetNbReservedChannels() int
- func (eu *Eu868) GetParameters() models.Parameters
- func (eu *Eu868) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (eu *Eu868) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (eu *Eu868) RX1DROffsetSupported(offset uint8) error
- func (eu *Eu868) Setup()
- func (eu *Eu868) SetupInfoRequest(indexChannel int) (string, int)
- func (eu *Eu868) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type In865
- func (in *In865) DataRateSupported(datarate uint8) error
- func (in *In865) FrequencySupported(frequency uint32) error
- func (in *In865) GetChannels() []c.Channel
- func (in *In865) GetCodR(datarate uint8) string
- func (in *In865) GetCode() int
- func (in *In865) GetDataRate(datarate uint8) (string, string)
- func (in *In865) GetDataRateBeacon() uint8
- func (in *In865) GetFrequencyBeacon() uint32
- func (in *In865) GetMaxDataRate() uint8
- func (in *In865) GetMinDataRate() uint8
- func (in *In865) GetNbReservedChannels() int
- func (in *In865) GetParameters() models.Parameters
- func (in *In865) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (in *In865) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (in *In865) RX1DROffsetSupported(offset uint8) error
- func (in *In865) Setup()
- func (in *In865) SetupInfoRequest(indexChannel int) (string, int)
- func (in *In865) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Kr920
- func (kr *Kr920) DataRateSupported(datarate uint8) error
- func (kr *Kr920) FrequencySupported(frequency uint32) error
- func (kr *Kr920) GetChannels() []c.Channel
- func (kr *Kr920) GetCodR(datarate uint8) string
- func (kr *Kr920) GetCode() int
- func (kr *Kr920) GetDataRate(datarate uint8) (string, string)
- func (kr *Kr920) GetDataRateBeacon() uint8
- func (kr *Kr920) GetFrequencyBeacon() uint32
- func (kr *Kr920) GetMaxDataRate() uint8
- func (kr *Kr920) GetMinDataRate() uint8
- func (kr *Kr920) GetNbReservedChannels() int
- func (kr *Kr920) GetParameters() models.Parameters
- func (kr *Kr920) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (kr *Kr920) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (kr *Kr920) RX1DROffsetSupported(offset uint8) error
- func (kr *Kr920) Setup()
- func (kr *Kr920) SetupInfoRequest(indexChannel int) (string, int)
- func (kr *Kr920) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Region
- type Ru864
- func (ru *Ru864) DataRateSupported(datarate uint8) error
- func (ru *Ru864) FrequencySupported(frequency uint32) error
- func (ru *Ru864) GetChannels() []c.Channel
- func (ru *Ru864) GetCodR(datarate uint8) string
- func (ru *Ru864) GetCode() int
- func (ru *Ru864) GetDataRate(datarate uint8) (string, string)
- func (ru *Ru864) GetDataRateBeacon() uint8
- func (ru *Ru864) GetFrequencyBeacon() uint32
- func (ru *Ru864) GetMaxDataRate() uint8
- func (ru *Ru864) GetMinDataRate() uint8
- func (ru *Ru864) GetNbReservedChannels() int
- func (ru *Ru864) GetParameters() models.Parameters
- func (ru *Ru864) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (ru *Ru864) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (ru *Ru864) RX1DROffsetSupported(offset uint8) error
- func (ru *Ru864) Setup()
- func (ru *Ru864) SetupInfoRequest(indexChannel int) (string, int)
- func (ru *Ru864) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
- type Us915
- func (us *Us915) DataRateSupported(datarate uint8) error
- func (us *Us915) FrequencySupported(frequency uint32) error
- func (us *Us915) GetChannels() []c.Channel
- func (us *Us915) GetCodR(datarate uint8) string
- func (us *Us915) GetCode() int
- func (us *Us915) GetDataRate(datarate uint8) (string, string)
- func (us *Us915) GetDataRateBeacon() uint8
- func (us *Us915) GetFrequencyBeacon() uint32
- func (us *Us915) GetMaxDataRate() uint8
- func (us *Us915) GetMinDataRate() uint8
- func (us *Us915) GetNbReservedChannels() int
- func (us *Us915) GetParameters() models.Parameters
- func (us *Us915) GetPayloadSize(datarate uint8, dTime lorawan.DwellTime) (int, int)
- func (us *Us915) LinkAdrReq(ChMaskCntl uint8, ChMask lorawan.ChMask, newDataRate uint8, ...) ([]bool, []error)
- func (us *Us915) RX1DROffsetSupported(offset uint8) error
- func (us *Us915) Setup()
- func (us *Us915) SetupInfoRequest(indexChannel int) (string, int)
- func (us *Us915) SetupRX1(datarate uint8, rx1offset uint8, indexChannel int, dtime lorawan.DwellTime) (uint8, int)
Constants ¶
View Source
const ( LenChMask = 16 Code_Eu868 = iota Code_Us915 Code_Cn779 Code_Eu433 Code_Au915 Code_Cn470 Code_As923 Code_Kr920 Code_In865 Code_Ru864 )
View Source
const ( ChMaskCntlChannel = iota ChMaskCntlGroup )
Variables ¶
This section is empty.
Functions ¶
func DecrementDataRate ¶
func GetInfo ¶
func GetInfo(Code int) models.Informations
Types ¶
type As923 ¶
type As923 struct {
Info models.Parameters
}
func (*As923) DataRateSupported ¶
func (*As923) FrequencySupported ¶
func (*As923) GetChannels ¶
func (*As923) GetDataRateBeacon ¶
func (*As923) GetFrequencyBeacon ¶
func (*As923) GetMaxDataRate ¶
func (*As923) GetMinDataRate ¶
func (*As923) GetNbReservedChannels ¶
func (*As923) GetParameters ¶
func (as *As923) GetParameters() models.Parameters
func (*As923) GetPayloadSize ¶
func (*As923) LinkAdrReq ¶
func (*As923) RX1DROffsetSupported ¶
type Au915 ¶
type Au915 struct {
Info models.Parameters
}
func (*Au915) DataRateSupported ¶
func (*Au915) FrequencySupported ¶
func (*Au915) GetChannels ¶
func (*Au915) GetDataRateBeacon ¶
func (*Au915) GetFrequencyBeacon ¶
func (*Au915) GetMaxDataRate ¶
func (*Au915) GetMinDataRate ¶
func (*Au915) GetNbReservedChannels ¶
func (*Au915) GetParameters ¶
func (au *Au915) GetParameters() models.Parameters
func (*Au915) GetPayloadSize ¶
func (*Au915) LinkAdrReq ¶
func (*Au915) RX1DROffsetSupported ¶
type Cn470 ¶
type Cn470 struct {
Info models.Parameters
}
func (*Cn470) DataRateSupported ¶
func (*Cn470) FrequencySupported ¶
func (*Cn470) GetChannels ¶
func (*Cn470) GetDataRateBeacon ¶
func (*Cn470) GetFrequencyBeacon ¶
func (*Cn470) GetMaxDataRate ¶
func (*Cn470) GetMinDataRate ¶
func (*Cn470) GetNbReservedChannels ¶
func (*Cn470) GetParameters ¶
func (cn *Cn470) GetParameters() models.Parameters
func (*Cn470) GetPayloadSize ¶
func (*Cn470) LinkAdrReq ¶
func (*Cn470) RX1DROffsetSupported ¶
type Cn779 ¶
type Cn779 struct {
Info models.Parameters
}
func (*Cn779) DataRateSupported ¶
func (*Cn779) FrequencySupported ¶
func (*Cn779) GetChannels ¶
func (*Cn779) GetDataRateBeacon ¶
func (*Cn779) GetFrequencyBeacon ¶
func (*Cn779) GetMaxDataRate ¶
func (*Cn779) GetMinDataRate ¶
func (*Cn779) GetNbReservedChannels ¶
func (*Cn779) GetParameters ¶
func (cn *Cn779) GetParameters() models.Parameters
func (*Cn779) GetPayloadSize ¶
func (*Cn779) LinkAdrReq ¶
func (*Cn779) RX1DROffsetSupported ¶
type Eu433 ¶
type Eu433 struct {
Info models.Parameters
}
func (*Eu433) DataRateSupported ¶
func (*Eu433) FrequencySupported ¶
func (*Eu433) GetChannels ¶
func (*Eu433) GetDataRateBeacon ¶
func (*Eu433) GetFrequencyBeacon ¶
func (*Eu433) GetMaxDataRate ¶
func (*Eu433) GetMinDataRate ¶
func (*Eu433) GetNbReservedChannels ¶
func (*Eu433) GetParameters ¶
func (eu *Eu433) GetParameters() models.Parameters
func (*Eu433) GetPayloadSize ¶
func (*Eu433) LinkAdrReq ¶
func (*Eu433) RX1DROffsetSupported ¶
type Eu868 ¶
type Eu868 struct {
Info models.Parameters
}
func (*Eu868) DataRateSupported ¶
func (*Eu868) FrequencySupported ¶
func (*Eu868) GetChannels ¶
func (*Eu868) GetDataRateBeacon ¶
func (*Eu868) GetFrequencyBeacon ¶
func (*Eu868) GetMaxDataRate ¶
func (*Eu868) GetMinDataRate ¶
func (*Eu868) GetNbReservedChannels ¶
func (*Eu868) GetParameters ¶
func (eu *Eu868) GetParameters() models.Parameters
func (*Eu868) GetPayloadSize ¶
func (*Eu868) LinkAdrReq ¶
func (*Eu868) RX1DROffsetSupported ¶
type In865 ¶
type In865 struct {
Info models.Parameters
}
func (*In865) DataRateSupported ¶
func (*In865) FrequencySupported ¶
func (*In865) GetChannels ¶
func (*In865) GetDataRateBeacon ¶
func (*In865) GetFrequencyBeacon ¶
func (*In865) GetMaxDataRate ¶
func (*In865) GetMinDataRate ¶
func (*In865) GetNbReservedChannels ¶
func (*In865) GetParameters ¶
func (in *In865) GetParameters() models.Parameters
func (*In865) GetPayloadSize ¶
func (*In865) LinkAdrReq ¶
func (*In865) RX1DROffsetSupported ¶
type Kr920 ¶
type Kr920 struct {
Info models.Parameters
}
func (*Kr920) DataRateSupported ¶
func (*Kr920) FrequencySupported ¶
func (*Kr920) GetChannels ¶
func (*Kr920) GetDataRateBeacon ¶
func (*Kr920) GetFrequencyBeacon ¶
func (*Kr920) GetMaxDataRate ¶
func (*Kr920) GetMinDataRate ¶
func (*Kr920) GetNbReservedChannels ¶
func (*Kr920) GetParameters ¶
func (kr *Kr920) GetParameters() models.Parameters
func (*Kr920) GetPayloadSize ¶
func (*Kr920) LinkAdrReq ¶
func (*Kr920) RX1DROffsetSupported ¶
type Region ¶
type Region interface { Setup() GetDataRate(uint8) (string, string) FrequencySupported(uint32) error DataRateSupported(uint8) error RX1DROffsetSupported(uint8) error GetCode() int GetChannels() []c.Channel GetMinDataRate() uint8 GetMaxDataRate() uint8 GetNbReservedChannels() int GetFrequencyBeacon() uint32 GetDataRateBeacon() uint8 GetCodR(uint8) string SetupInfoRequest(int) (string, int) LinkAdrReq(uint8, lorawan.ChMask, uint8, *[]c.Channel) ([]bool, []error) SetupRX1(uint8, uint8, int, lorawan.DwellTime) (uint8, int) GetPayloadSize(uint8, lorawan.DwellTime) (int, int) GetParameters() models.Parameters }
func GetRegionalParameters ¶
type Ru864 ¶
type Ru864 struct {
Info models.Parameters
}
func (*Ru864) DataRateSupported ¶
func (*Ru864) FrequencySupported ¶
func (*Ru864) GetChannels ¶
func (*Ru864) GetDataRateBeacon ¶
func (*Ru864) GetFrequencyBeacon ¶
func (*Ru864) GetMaxDataRate ¶
func (*Ru864) GetMinDataRate ¶
func (*Ru864) GetNbReservedChannels ¶
func (*Ru864) GetParameters ¶
func (ru *Ru864) GetParameters() models.Parameters
func (*Ru864) GetPayloadSize ¶
func (*Ru864) LinkAdrReq ¶
func (*Ru864) RX1DROffsetSupported ¶
type Us915 ¶
type Us915 struct {
Info models.Parameters
}
func (*Us915) DataRateSupported ¶
func (*Us915) FrequencySupported ¶
func (*Us915) GetChannels ¶
func (*Us915) GetDataRateBeacon ¶
func (*Us915) GetFrequencyBeacon ¶
func (*Us915) GetMaxDataRate ¶
func (*Us915) GetMinDataRate ¶
func (*Us915) GetNbReservedChannels ¶
func (*Us915) GetParameters ¶
func (us *Us915) GetParameters() models.Parameters
func (*Us915) GetPayloadSize ¶
func (*Us915) LinkAdrReq ¶
func (*Us915) RX1DROffsetSupported ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.