dds

package
v0.0.0-...-5837768 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package dds provides structures to mirror direct digital synthesizer devices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug        bool    `yaml:"debug"`
	RefClock     float64 `yaml:"refclock"`
	SysClock     float64 `yaml:"sysclock"`
	PLL          bool    `yaml:"pll"`
	SPI3Wire     bool    `yaml:"spi3wire"`
	SPIMaxTxSize int     `yaml:"spimaxtxsize"`
	InverseSinc  bool    `yaml:"inversesinc"`
}

Config holds the configuration of a generic direct digital synthesizer device.

type Param

type Param int

Param defines a signal parameter controlled by the DDS device.

const (
	ParamAmplitude Param = iota
	ParamFrequency
	ParamPhase
)

Common DDS controllable parameters.

type PlaybackConfig

type PlaybackConfig struct {
	Data     []float64
	Trigger  bool
	Duplex   bool
	Interval time.Duration
	Param    Param
}

PlaybackConfig holds the configuration for reading a DDS controllable parameter from memory.

type SweepConfig

type SweepConfig struct {
	Limits   [2]float64
	NoDwells [2]bool
	Duration time.Duration
	Param    Param
}

SweepConfig holds the configuration for sweeping a DDS controllable parameter via the digital ramp of a DDS device.

Directories

Path Synopsis
Package ad9910 provides a structure to mirror the AD9910 DDS chip.
Package ad9910 provides a structure to mirror the AD9910 DDS chip.

Jump to

Keyboard shortcuts

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