utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DuplexMode

type DuplexMode int32

DuplexMode of LTE Band

const (
	// TDDMode
	TDDMode DuplexMode = iota
	// FDDMode
	FDDMode
)

type LTEBand

type LTEBand struct {
	ID            uint32
	Mode          DuplexMode
	CountEarfcn   uint32
	StartEarfcnDl uint32
	StartEarfcnUl uint32
}

LTEBand struct for converting EARFCN to Band

func GetBand

func GetBand(earfcndl uint32) (*LTEBand, error)

GetBand for a EARFCN-UL

func (LTEBand) EarfcnDLInRange

func (band LTEBand) EarfcnDLInRange(earfcndl uint32) bool

EarfcnDLInRange checks that an EARFCN-DL belongs to a band

func (LTEBand) EarfcnULInRange

func (band LTEBand) EarfcnULInRange(earfcnul uint32) bool

EarfcnULInRange checks that an EARFCN-UL belongs to a band

Jump to

Keyboard shortcuts

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