frontend

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecibelStat

type DecibelStat struct {
	Decibel *float64
	Ratio   *float64
}

type Frontend

type Frontend struct {
	File *os.File
}

func Open

func Open(adapter uint, frontend uint) (*Frontend, error)

func (*Frontend) Close

func (f *Frontend) Close() error

func (*Frontend) GetStats

func (f *Frontend) GetStats() (Stats, error)

func (*Frontend) ReadStatus

func (f *Frontend) ReadStatus() (Status, error)

type Stats

type Stats struct {
	SignalStrength    DecibelStat
	CNR               DecibelStat
	PreErrorBitCount  *uint64
	PreTotalBitCount  *uint64
	PostErrorBitCount *uint64
	PostTotalBitCount *uint64
	ErrorBlockCount   *uint64
	TotalBlockCount   *uint64
}

type Status

type Status struct {
	HasSignal  bool
	HasCarrier bool
	HasViterbi bool
	HasSync    bool
	HasLock    bool
	Timedout   bool
	Reinit     bool
}

Jump to

Keyboard shortcuts

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