dsp

package
v0.0.0-...-6c475a9 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DSP

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

func New

func New(sampleRate int, ifFrequency, rxOffset core.Frequency) *DSP

func NewFullRange

func NewFullRange(sampleRate int, ifFrequency, rxOffset core.Frequency) *DSP

func (*DSP) FFT

func (d *DSP) FFT() chan core.FFT

func (*DSP) ProcessSamples

func (d *DSP) ProcessSamples(samples []complex128, fftRange core.FrequencyRange, vfo core.VFO)

func (*DSP) Run

func (d *DSP) Run(stop chan struct{})

type RandomInput

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

func NewRandomInput

func NewRandomInput(blockSize int, sampleRate int) *RandomInput

NewRandomInput returns a new SamplesInput that produces random samples.

func (*RandomInput) Close

func (i *RandomInput) Close() error

func (*RandomInput) Samples

func (i *RandomInput) Samples() <-chan []complex128

type SweepInput

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

func NewSweepInput

func NewSweepInput(blockSize int, sampleRate int, from, to, step float64) *SweepInput

NewSweepInput returns a new SamplesInput that produces samples of a sine wave with the given frequency.

func (*SweepInput) Close

func (i *SweepInput) Close() error

func (*SweepInput) Samples

func (i *SweepInput) Samples() <-chan []complex128

type ToneInput

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

func NewToneInput

func NewToneInput(blockSize int, sampleRate int, f float64) *ToneInput

NewToneInput returns a new SamplesInput that produces samples of a sine wave with the given frequency.

func (*ToneInput) Close

func (i *ToneInput) Close() error

func (*ToneInput) Samples

func (i *ToneInput) Samples() <-chan []complex128

Jump to

Keyboard shortcuts

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