rbuf

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package rbuf contains refresh buffer types, methods and functions.

Index

Constants

View Source
const (
	Idx = iota
	MSB
	LSB
	MaxRefreshCmd
	RefreshCmd
	DirSpeed
	F0_4
	F5_8
	F9_12  //lint:ignore ST1003 complains about ALL_CAPS
	F5_12  //lint:ignore ST1003 complains about ALL_CAPS
	F13_20 //lint:ignore ST1003 complains about ALL_CAPS
	F21_28 //lint:ignore ST1003 complains about ALL_CAPS
	F29_36 //lint:ignore ST1003 complains about ALL_CAPS
	F37_44 //lint:ignore ST1003 complains about ALL_CAPS
	F45_52 //lint:ignore ST1003 complains about ALL_CAPS
	F53_60 //lint:ignore ST1003 complains about ALL_CAPS
	F61_68 //lint:ignore ST1003 complains about ALL_CAPS
	Prev
	Next
	NumBytes
)

refresh buffer indices

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	First, Next int
	Entries     []Entry
}

Buffer represents a command station refresh buffer.

func Parse

func Parse(lines []string) (*Buffer, error)

Parse parses the refresh buffer send by a command station.

func (*Buffer) String

func (buf *Buffer) String() string

type Entry

type Entry [NumBytes]byte

Entry represents a command station refresh buffer entry.

func (*Entry) String

func (e *Entry) String() string

Jump to

Keyboard shortcuts

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