Documentation
¶
Index ¶
- Constants
- Variables
- type Session
- func (se *Session) AddCLOCK(name string) *SessionError
- func (se *Session) AddHALT(name string) *SessionError
- func (se *Session) AddHI(name string) *SessionError
- func (se *Session) AddLED(name string) *SessionError
- func (se *Session) AddLO(name string) *SessionError
- func (se *Session) AddNand(inputA, inputB, output string) *SessionError
- func (se *Session) ClockDownAndUpdate()
- func (se *Session) ClockUpAndUpdate()
- func (se *Session) Connect(input, output string) *SessionError
- func (se *Session) Cycle()
- func (se *Session) GetInterval() int
- func (se *Session) GetLEDPortName() []string
- func (se *Session) GetState(name string) int
- func (se *Session) GetUnconnectedPortName() []string
- func (se *Session) IsHalt() bool
- func (se *Session) PreUpdate()
- func (se *Session) SetInterval(i int)
- type SessionError
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) GetInterval ¶
func (*Session) GetLEDPortName ¶
func (*Session) GetUnconnectedPortName ¶
func (*Session) SetInterval ¶
type SessionError ¶
type SessionError struct {
Message string
}
Click to show internal directories.
Click to hide internal directories.