eda

package
v0.7.1-0...-c0f8c48 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Overview

Package eda holds functions to manipulate data from EDA.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunStandalone

func RunStandalone(cfg string, run, threshold, rfmMask int, opts ...Option) error

func Serve

func Serve(addr, odir, devmem, devshm string, opts ...Option) error

Types

type Device

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

Device represents an EDA board device.

func NewDevice

func NewDevice(fname string, odir string, opts ...Option) (*Device, error)

func (*Device) Boot

func (dev *Device) Boot(args []conddb.RFM) error

func (*Device) Close

func (dev *Device) Close() error

func (*Device) Configure

func (dev *Device) Configure() error

func (*Device) ConfigureDIF

func (dev *Device) ConfigureDIF(addr string, dif uint8, asics []conddb.ASIC) error

func (*Device) DumpConfig

func (dev *Device) DumpConfig(w io.Writer, rfm int) error

func (*Device) DumpCounters

func (dev *Device) DumpCounters(w io.Writer, rfm int) error

func (*Device) DumpFIFOStatus

func (dev *Device) DumpFIFOStatus(w io.Writer, rfm int) error

func (*Device) DumpRegisters

func (dev *Device) DumpRegisters(w io.Writer) error

func (*Device) Initialize

func (dev *Device) Initialize() error

func (*Device) Start

func (dev *Device) Start(run uint32) error

func (*Device) Stop

func (dev *Device) Stop() error

type Option

type Option func(*config)

func WithCShaper

func WithCShaper(v uint32) Option

func WithConfigDir

func WithConfigDir(dir string) Option

func WithCtlAddr

func WithCtlAddr(addr string) Option

func WithDAQMode

func WithDAQMode(mode string) Option

func WithDevSHM

func WithDevSHM(dir string) Option

func WithRFMMask

func WithRFMMask(v uint32) Option

func WithRShaper

func WithRShaper(v uint32) Option

func WithResetBCID

func WithResetBCID(timeout time.Duration) Option

func WithThreshold

func WithThreshold(v uint32) Option

Directories

Path Synopsis
internal
regs
Package regs holds constants for the EDA registers.
Package regs holds constants for the EDA registers.

Jump to

Keyboard shortcuts

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