frequency_plan

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 License: Apache-2.0 Imports: 13 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CountryToPlan = map[countries.CountryCode]string{}/* 118 elements not displayed */
View Source
var EEZToCountry = map[string]countries.CountryCode{
	"3293.0":  countries.Belgium,
	"5668.0":  countries.Netherlands,
	"5669.0":  countries.Germany,
	"5674.0":  countries.Denmark,
	"5696.0":  countries.UnitedKingdom,
	"5673.0":  countries.Hungary,
	"5677.0":  countries.France,
	"5679.0":  countries.Greece,
	"5694.0":  countries.Slovakia,
	"5676.0":  countries.Finland,
	"5681.0":  countries.Ireland,
	"5682.0":  countries.Italy,
	"5686.0":  countries.Norway,
	"5691.0":  countries.Montenegro,
	"5693.0":  countries.Spain,
	"5688.0":  countries.Portugal,
	"8323.0":  countries.Australia,
	"8455.0":  countries.NewZealand,
	"8449.0":  countries.Tokelau,
	"8324.0":  countries.PapuaNewGuinea,
	"8310.0":  countries.NorfolkIsland,
	"8447.0":  countries.Niue,
	"8388.0":  countries.HeardIslandandMcDonaldIslands,
	"8446.0":  countries.CookIslands,
	"8308.0":  countries.ChristmasIsland,
	"8309.0":  countries.CocosIslands,
	"8758.0":  countries.TimorLeste,
	"8448.0":  countries.Tonga,
	"21788.0": countries.UnitedKingdom,
	"5670.0":  countries.Albania,
	"5697.0":  countries.Turkey,
	"5685.0":  countries.Malta,
	"8376.0":  countries.Cyprus,
	"5687.0":  countries.Poland,
	"5683.0":  countries.Latvia,
	"5684.0":  countries.Lithuania,
	"5675.0":  countries.Estonia,
	"8435.0":  countries.FaroeIslands,
	"5680.0":  countries.Iceland,
	"8437.0":  countries.Norway,
	"8438.0":  countries.Greenland,
	"33181.0": countries.Norway,
	"8361.0":  countries.Portugal,
	"8363.0":  countries.Portugal,
	"8364.0":  countries.Spain,
	"8366.0":  countries.Tunisia,
	"8490.0":  countries.Egypt,
	"8356.0":  countries.SaudiArabia,
	"8312.0":  countries.NewCaledonia,
	"8362.0":  countries.CapeVerde,
	"8379.0":  countries.UnitedKingdom,
	"8380.0":  countries.SaintHelena,
	"8469.0":  countries.Iran,
	"8360.0":  countries.UnitedArabEmirates,
	"8468.0":  countries.Qatar,
	"5672.0":  countries.Bulgaria,
	"5689.0":  countries.Romania,
	"5695.0":  countries.Ukraine,
	"5678.0":  countries.Georgia,
	"8322.0":  countries.Philippines,
	"8387.0":  countries.France,
	"8386.0":  countries.France,
	"8385.0":  countries.France,
	"8384.0":  countries.France,
	"8396.0":  countries.SouthAfrica,
	"8466.0":  countries.Argentina,
	"8464.0":  countries.Brazil,
	"8465.0":  countries.Chile,
}
View Source
var Overrides = map[string]string{
	"821f37fffffffff": "EU868",
	"82006ffffffffff": "EU868",
}

Functions

func GetBand

func GetBand(commonName string) (band.Band, error)

func IsValidBandForHex

func IsValidBandForHex(band BandName, hex h3light.Cell) bool

Types

type BandName

type BandName string
const (
	Invalid BandName = "INVALID"
	EU868   BandName = "EU868"
	US915   BandName = "US915"
	CN779   BandName = "CN779"
	EU433   BandName = "EU433"
	AU915   BandName = "AU915"
	CN470   BandName = "CN470"
	AS923   BandName = "AS923"
	AS923_2 BandName = "AS923-2"
	AS923_3 BandName = "AS923-3"
	KR920   BandName = "KR920"
	IN865   BandName = "IN865"
	RU864   BandName = "RU864"
	AS923_4 BandName = "AS923-4"
)

func FromBlockchain

func FromBlockchain(in BlockchainFrequencyPlan) BandName

func (BandName) MarshalText added in v1.3.0

func (b BandName) MarshalText() ([]byte, error)

func (BandName) ToBlockchain

func (b BandName) ToBlockchain() BlockchainFrequencyPlan

func (*BandName) UnmarshalText

func (b *BandName) UnmarshalText(text []byte) error

type BlockchainFrequencyPlan

type BlockchainFrequencyPlan uint

Directories

Path Synopsis
document
cmd command

Jump to

Keyboard shortcuts

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