serial

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	COM1Addr = 0x03f8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IRQInjector added in v0.0.6

type IRQInjector interface {
	InjectSerialIRQ() error
}

type Serial

type Serial struct {
	IER byte
	LCR byte
	// contains filtered or unexported fields
}

func New

func New(irqInjector IRQInjector) (*Serial, error)

func (*Serial) GetInputChan

func (s *Serial) GetInputChan() chan<- byte

func (*Serial) In

func (s *Serial) In(port uint64, values []byte) error

func (*Serial) Out

func (s *Serial) Out(port uint64, values []byte) error

Jump to

Keyboard shortcuts

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