serial

package
v0.0.0-...-50a2d83 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 11 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 New

func New(comName string, ptz *dsd.PTZ) *Serial

func (*Serial) Down

func (s *Serial) Down(speed byte) error

func (*Serial) Goto

func (s *Serial) Goto(pos *dsd.Position) error

func (*Serial) Left

func (s *Serial) Left(speed byte) error

func (*Serial) LeftDown

func (s *Serial) LeftDown(speed byte) error

func (*Serial) LeftUp

func (s *Serial) LeftUp(speed byte) error

func (*Serial) Model

func (s *Serial) Model() (string, error)

func (*Serial) Position

func (s *Serial) Position() (*dsd.Position, error)

func (*Serial) Restart

func (s *Serial) Restart() error

func (*Serial) Right

func (s *Serial) Right(speed byte) error

func (*Serial) RightDown

func (s *Serial) RightDown(speed byte) error

func (*Serial) RightUp

func (s *Serial) RightUp(speed byte) error

func (*Serial) Send

func (s *Serial) Send(ct protocol.CommandType, rt protocol.ReplayType, data1, data2 byte) ([]byte, error)

func (*Serial) Set

func (s *Serial) Set(ptz *dsd.PTZ) error

func (*Serial) Stop

func (s *Serial) Stop() error

func (*Serial) Up

func (s *Serial) Up(speed byte) error

func (*Serial) Version

func (s *Serial) Version() (string, error)

func (*Serial) ZoomAdd

func (s *Serial) ZoomAdd() error

func (*Serial) ZoomSub

func (s *Serial) ZoomSub() error

Jump to

Keyboard shortcuts

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