serial

package
v0.0.0-...-e0ac686 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serial

type Serial struct {
	// contains filtered or unexported fields
}

Serial captures the current state of serial bus

func New

func New(writer io.Writer) *Serial

New Serial

func (*Serial) ReadSB

func (s *Serial) ReadSB() uint8

ReadSB handles reads from register SB

func (*Serial) ReadSC

func (s *Serial) ReadSC() uint8

ReadSC handles reads from register SC

func (*Serial) WriteSB

func (s *Serial) WriteSB(value uint8)

WriteSB handles writes to register SB

func (*Serial) WriteSC

func (s *Serial) WriteSC(value uint8)

WriteSC handles writes to register SC

Jump to

Keyboard shortcuts

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