yaroze

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package yaroze provides an interface Net Yaroze functionality.

Index

Constants

View Source
const (
	ECOFF_PSX_SP uint64 = 0x801fff00
	Prompt              = ">>"
)

Variables

View Source
var Libps *psx.File

Functions

func Combine

func Combine(f *psx.File) (*psx.File, error)

func PatchExecutable

func PatchExecutable(f *psx.File) error

Types

type Port

type Port struct {
	serial.Port
	// contains filtered or unexported fields
}

func OpenPort

func OpenPort(cfg *PortConfig) (*Port, error)

func (*Port) Bwr

func (p *Port) Bwr() error

func (*Port) Clear

func (p *Port) Clear() error

func (*Port) ClearScreen

func (p *Port) ClearScreen() error

func (*Port) Go

func (p *Port) Go() error

func (*Port) Handshake

func (p *Port) Handshake(addr uint32, size int32) error

func (*Port) Load

func (p *Port) Load(f *ecoff.File) error

func (*Port) ReadByte

func (p *Port) ReadByte() (byte, error)

func (*Port) ReadUntil

func (p *Port) ReadUntil(seq string) error

func (*Port) SendCommand

func (p *Port) SendCommand(command string) error

func (*Port) SendData

func (p *Port) SendData(data []byte, batch int) error

func (*Port) Write

func (p *Port) Write(data []byte) error

func (*Port) WriteByte

func (p *Port) WriteByte(b byte) error

type PortConfig

type PortConfig struct {
	BaudRate   int
	DeviceName string
	Output     io.Writer
}

Jump to

Keyboard shortcuts

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