tui

package
v0.0.0-...-8ff17c6 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugOut *tview.TextView
View Source
var DecoderStatsMutex sync.RWMutex
View Source
var LogOut *tview.TextView

Making this global so that all modules can set the log output to this io.Writer

Functions

func ResetChannelAndDecoderStats

func ResetChannelAndDecoderStats()

func StartUI

func StartUI(decoder *datalink.Decoder, demodulator *physical.Demodulator, r *radio.SDR, enableFFT bool, tuiConf types.Tui)

func WriteChannelData

func WriteChannelData(idx int, c Channel)

func WriteOverallDecoderStats

func WriteOverallDecoderStats(d DecoderStats)

Types

type Channel

type Channel struct {
	ID                int
	Name              string
	NumPackets        int
	NumPacketsDropped int
}

func ReadChannelData

func ReadChannelData(idx int) Channel

type ChannelTableData

type ChannelTableData struct {
	tview.TableContentReadOnly
}

func (*ChannelTableData) GetCell

func (c *ChannelTableData) GetCell(row, column int) *tview.TableCell

func (*ChannelTableData) GetColumnCount

func (d *ChannelTableData) GetColumnCount() int

func (*ChannelTableData) GetRowCount

func (d *ChannelTableData) GetRowCount() int

type DecoderStats

type DecoderStats struct {
	FrameLock           bool
	TotalPackets        int
	TotalDroppedPackets int
	SNR                 float64
	AvgSNR              float64
	PeakSNR             float64
}

func ReadOverallDecoderStats

func ReadOverallDecoderStats() DecoderStats

type LockTableData

type LockTableData struct {
	tview.TableContentReadOnly
}

func (*LockTableData) GetCell

func (l *LockTableData) GetCell(row, column int) *tview.TableCell

func (*LockTableData) GetColumnCount

func (l *LockTableData) GetColumnCount() int

func (*LockTableData) GetRowCount

func (l *LockTableData) GetRowCount() int

Jump to

Keyboard shortcuts

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