control

package
v0.0.0-...-ce6b004 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TYPE_HALT        = 1
	TYPE_CLOCK       = 2
	TYPE_NAND        = 3
	TYPE_LO          = 4
	TYPE_HI          = 5
	TYPE_LED         = 6
	TYPE_CONNECTED   = 7
	TYPE_UNCONNECTED = 8
)
View Source
const CLOCK_INTERVAL = 1000

Variables

View Source
var HI = model.HI
View Source
var LO = model.LO

Functions

This section is empty.

Types

type Session

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

func MakeSession

func MakeSession() *Session

func (*Session) AddCLOCK

func (se *Session) AddCLOCK(name string) *SessionError

func (*Session) AddHALT

func (se *Session) AddHALT(name string) *SessionError

func (*Session) AddHI

func (se *Session) AddHI(name string) *SessionError

func (*Session) AddLED

func (se *Session) AddLED(name string) *SessionError

func (*Session) AddLO

func (se *Session) AddLO(name string) *SessionError

func (*Session) AddNand

func (se *Session) AddNand(inputA, inputB, output string) *SessionError

func (*Session) ClockDownAndUpdate

func (se *Session) ClockDownAndUpdate()

func (*Session) ClockUpAndUpdate

func (se *Session) ClockUpAndUpdate()

func (*Session) Connect

func (se *Session) Connect(input, output string) *SessionError

func (*Session) Cycle

func (se *Session) Cycle()

func (*Session) GetInterval

func (se *Session) GetInterval() int

func (*Session) GetLEDPortName

func (se *Session) GetLEDPortName() []string

func (*Session) GetState

func (se *Session) GetState(name string) int

func (*Session) GetUnconnectedPortName

func (se *Session) GetUnconnectedPortName() []string

func (*Session) IsHalt

func (se *Session) IsHalt() bool

func (*Session) PreUpdate

func (se *Session) PreUpdate()

func (*Session) SetInterval

func (se *Session) SetInterval(i int)

type SessionError

type SessionError struct {
	Message string
}

Jump to

Keyboard shortcuts

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