region

package
v0.0.0-...-0087ba1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AU915_DEFAULT_PREAMBLE_LEN = 8
	AU915_DEFAULT_TX_POWER_DBM = 20
)
View Source
const (
	EU868_DEFAULT_PREAMBLE_LEN = 8
	EU868_DEFAULT_TX_POWER_DBM = 20
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Frequency       uint32
	Bandwidth       uint8
	SpreadingFactor uint8
	CodingRate      uint8
	PreambleLength  uint16
	TxPowerDBm      int8
}

type RegionSettings

type RegionSettings interface {
	JoinRequestChannel() *Channel
	JoinAcceptChannel() *Channel
	UplinkChannel() *Channel
}

type RegionSettingsAU915

type RegionSettingsAU915 struct {
	// contains filtered or unexported fields
}

func AU915

func AU915() *RegionSettingsAU915

func (*RegionSettingsAU915) JoinAcceptChannel

func (r *RegionSettingsAU915) JoinAcceptChannel() *Channel

func (*RegionSettingsAU915) JoinRequestChannel

func (r *RegionSettingsAU915) JoinRequestChannel() *Channel

func (*RegionSettingsAU915) UplinkChannel

func (r *RegionSettingsAU915) UplinkChannel() *Channel

type RegionSettingsEU868

type RegionSettingsEU868 struct {
	// contains filtered or unexported fields
}

func EU868

func EU868() *RegionSettingsEU868

func (*RegionSettingsEU868) JoinAcceptChannel

func (r *RegionSettingsEU868) JoinAcceptChannel() *Channel

func (*RegionSettingsEU868) JoinRequestChannel

func (r *RegionSettingsEU868) JoinRequestChannel() *Channel

func (*RegionSettingsEU868) UplinkChannel

func (r *RegionSettingsEU868) UplinkChannel() *Channel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL