Documentation ¶
Index ¶
Constants ¶
View Source
const ( SioBase = 0x20 SioAData = SioBase + 0 + 0 SioACtrl = SioBase + 0 + 2 SioBData = SioBase + 1 + 0 SioBCtrl = SioBase + 1 + 2 )
constants defining the address used
Variables ¶
This section is empty.
Functions ¶
func NewDebugDevice ¶
func NewDebugDevice() debugDevice
NewDebugDevice returns a new IO device that can be used for debugging
Types ¶
type Device ¶
type Device interface { // Write writes a single byte to the specified port Write(port, val uint8) // Read reads a single byte from the specified port Read(port uint8) uint8 }
Device defines the interface for communicating with an IO device using IN and OUT operations
Click to show internal directories.
Click to hide internal directories.