synio

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const ACK byte = 0x06
View Source
const DC1 byte = 0x11
View Source
const LONG_TIMEOUT_MS = 20000 // after large amounts of IO, give the synergy more time to ack
View Source
const NAK byte = 0x15
View Source
const OP_ASSIGNED_KEY = byte(0x77)
View Source
const OP_BLOCKDUMP = byte(0x72)
View Source
const OP_BLOCKLOAD = byte(0x71)
View Source
const OP_DISABLEVRAM = byte(0x6f)
View Source
const OP_ENABLEVRAM = byte(0x70)
View Source
const OP_EXECUTE = byte(0x75)
View Source
const OP_GETID = byte(0x74)
View Source
const OP_IMODE = byte(0x76)
View Source
const OP_KEYDWN = byte(0x01)
View Source
const OP_KEYUP = byte(0x02)
View Source
const OP_POT = byte(0x03)
View Source
const OP_SELECT = byte(0x78)
View Source
const OP_SLOW_BLOCKDUMP = byte(0x7c)
View Source
const OP_STDUMP = byte(0x79)
View Source
const OP_STLOAD = byte(0x7a)
View Source
const OP_VCELOD = byte(0x6e)
View Source
const OP_VRLOD = byte(0x6b)
View Source
const RT_TIMEOUT_MS = 100 // "realtime" events need a shorter timeout
View Source
const TIMEOUT_MS = 10000

Variables

This section is empty.

Functions

func BlockDump

func BlockDump(startAddress uint16, length uint16) (bytes []byte, err error)

func BlockLoad

func BlockLoad(startAddress uint16, bytes []byte) (err error)

func DiagCOMTST

func DiagCOMTST() (err error)

func DiagLOOPTST

func DiagLOOPTST() (err error)

func DisableVRAM

func DisableVRAM() (err error)

func GetID

func GetID() (versionID [2]byte, err error)

func Init

func Init(port string, baud uint, synVerbose bool, serialVerbose bool) (err error)

func InitVRAM

func InitVRAM() (err error)

func KeyDown

func KeyDown(voice, key, velocity byte) (err error)

voice 1..4 key 0..73 velocity 0..32

func KeyUp

func KeyUp(key, velocity byte) (err error)

Synergy can't turn off voice-specific key - we're in rolling voice assign mode key 0..73 velocity 0..32

func LoadCRT

func LoadCRT(crt []byte) (err error)

func LoadSYN

func LoadSYN(bytes []byte) (err error)

Send Synergy "state" (STLOAD in the Z80 sources)

func LoadVCE

func LoadVCE(slotnum byte, vce []byte) (err error)

func Pedal

func Pedal(up bool) (err error)

func SaveSYN

func SaveSYN() (bytes []byte, err error)

Retrieve Synergy "state" (STDUMP in the Z80 sources)

func SelectVoiceMapping

func SelectVoiceMapping(v1, v2, v3, v4 byte) (err error)

func VoicingMode

func VoicingMode() (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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