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: 12 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 ptz.Speed) error

func (*Serial) Goto

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

func (*Serial) GotoPan

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

func (*Serial) GotoTilt

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

func (*Serial) GotoZoom

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

func (*Serial) Left

func (s *Serial) Left(speed ptz.Speed) error

func (*Serial) LeftDown

func (s *Serial) LeftDown(speed ptz.Speed) error

func (*Serial) LeftUp

func (s *Serial) LeftUp(speed ptz.Speed) 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 ptz.Speed) error

func (*Serial) RightDown

func (s *Serial) RightDown(speed ptz.Speed) error

func (*Serial) RightUp

func (s *Serial) RightUp(speed ptz.Speed) 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 ptz.Speed) 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

type SerialV2

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

func NewSerialV2

func NewSerialV2(comName string, ptz *dsd.PTZ) *SerialV2

func (*SerialV2) Down

func (s *SerialV2) Down(speed ptz.Speed) error

func (*SerialV2) Goto

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

func (*SerialV2) GotoPan

func (s *SerialV2) GotoPan(pos *dsd.Position) error

func (*SerialV2) GotoTilt

func (s *SerialV2) GotoTilt(pos *dsd.Position) error

func (*SerialV2) GotoZoom

func (s *SerialV2) GotoZoom(pos *dsd.Position) error

func (*SerialV2) Left

func (s *SerialV2) Left(speed ptz.Speed) error

func (*SerialV2) LeftDown

func (s *SerialV2) LeftDown(speed ptz.Speed) error

func (*SerialV2) LeftUp

func (s *SerialV2) LeftUp(speed ptz.Speed) error

func (*SerialV2) Model

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

func (*SerialV2) Position

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

func (*SerialV2) Restart

func (s *SerialV2) Restart() error

func (*SerialV2) Right

func (s *SerialV2) Right(speed ptz.Speed) error

func (*SerialV2) RightDown

func (s *SerialV2) RightDown(speed ptz.Speed) error

func (*SerialV2) RightUp

func (s *SerialV2) RightUp(speed ptz.Speed) error

func (*SerialV2) Send

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

func (*SerialV2) Stop

func (s *SerialV2) Stop() error

func (*SerialV2) Up

func (s *SerialV2) Up(speed ptz.Speed) error

func (*SerialV2) Version

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

func (*SerialV2) ZoomAdd

func (s *SerialV2) ZoomAdd() error

func (*SerialV2) ZoomSub

func (s *SerialV2) ZoomSub() error

Jump to

Keyboard shortcuts

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