mirror of
https://github.com/tjboldt/Apple2-IO-RPi.git
synced 2024-11-27 20:51:03 +00:00
841b11f9ae
* Update copyright year * Update module to add image support
24 lines
743 B
Go
24 lines
743 B
Go
// Copyright Terence J. Boldt (c)2021-2023
|
|
// Use of this source code is governed by an MIT
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// This file defines the interface for communicating with the Apple II via
|
|
// the Raspberry Pi GPIO ports but can also be mocked out for tests or
|
|
// passed input to the user for interactive testing
|
|
|
|
package a2io
|
|
|
|
// A2Io provides an interface to send and receive data to the Apple II
|
|
type A2Io interface {
|
|
Init()
|
|
WriteByte(data byte) error
|
|
WriteString(outString string) error
|
|
WriteBlock(buffer []byte) error
|
|
WriteBuffer(buffer []byte) error
|
|
ReadByte() (byte, error)
|
|
ReadString() (string, error)
|
|
ReadBlock(buffer []byte) error
|
|
SendCharacter(character byte)
|
|
ReadCharacter() (string, error)
|
|
}
|