com

package
v0.0.0-...-7d4f8a7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2016 License: MIT Imports: 8 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
}

func MustSerial

func MustSerial(protocol driver.Protocol) *Serial

func (*Serial) Brightness

func (s *Serial) Brightness(value byte) error

func (*Serial) Clear

func (s *Serial) Clear() error

func (*Serial) ClearRow

func (s *Serial) ClearRow() error

func (*Serial) Close

func (s *Serial) Close() error

func (*Serial) CreatePort

func (s *Serial) CreatePort(port Serialer)

///

func (*Serial) CursorMove

func (s *Serial) CursorMove(row, col byte) error

func (*Serial) CursorMoveBeginInRow

func (s *Serial) CursorMoveBeginInRow() error

func (*Serial) CursorMoveBottom

func (s *Serial) CursorMoveBottom() error

func (*Serial) CursorMoveDown

func (s *Serial) CursorMoveDown() error

func (*Serial) CursorMoveEndInRow

func (s *Serial) CursorMoveEndInRow() error

func (*Serial) CursorMoveLeft

func (s *Serial) CursorMoveLeft() error

func (*Serial) CursorMoveLeftTop

func (s *Serial) CursorMoveLeftTop() error

func (*Serial) CursorMoveRight

func (s *Serial) CursorMoveRight() error

func (*Serial) CursorMoveUp

func (s *Serial) CursorMoveUp() error

func (*Serial) CursorVisible

func (s *Serial) CursorVisible(visible bool) error

func (*Serial) FlagEnable

func (s *Serial) FlagEnable(enabled bool, num byte) error

func (*Serial) FlagsDisable

func (s *Serial) FlagsDisable() error

func (*Serial) Init

func (s *Serial) Init() error

func (*Serial) ModeHScroll

func (s *Serial) ModeHScroll() error

func (*Serial) ModeRewrite

func (s *Serial) ModeRewrite() error

func (*Serial) ModeVScroll

func (s *Serial) ModeVScroll() error

func (*Serial) PrintRow

func (s *Serial) PrintRow(row byte, text string) error

func (*Serial) Protocol

func (s *Serial) Protocol() driver.Protocol

func (*Serial) Receive

func (s *Serial) Receive(b []byte) (n int, err error)

func (*Serial) Send

func (s *Serial) Send(data []byte) error

func (*Serial) Serialer

func (s *Serial) Serialer() Serialer

func (*Serial) SetEncoding

func (s *Serial) SetEncoding(encoding encoding.Encoding)

func (*Serial) Test

func (s *Serial) Test() error

type Serialer

type Serialer interface {
	Write(b []byte) (n int, err error)
	Close() error
	Read(b []byte) (n int, err error)
}

Jump to

Keyboard shortcuts

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