keydigital

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

README

keydigital-driver

This is the driver for the Key Digital Video Switcher

Documentation

Index

Constants

View Source
const (
	CARRIAGE_RETURN           = 0x0D
	LINE_FEED                 = 0x0A
	SPACE                     = 0x20
	DELAY_BETWEEN_CONNECTIONS = time.Second * 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyDigitalVideoSwitcher

type KeyDigitalVideoSwitcher struct {
	Address string
	Pool    *connpool.Pool
}

func CreateVideoSwitcher

func CreateVideoSwitcher(ctx context.Context, addr string) (*KeyDigitalVideoSwitcher, error)

func (*KeyDigitalVideoSwitcher) GetHardwareInfo

func (vs *KeyDigitalVideoSwitcher) GetHardwareInfo(ctx context.Context) (structs.HardwareInfo, error)

GetHardwareInfo .

func (*KeyDigitalVideoSwitcher) GetInfo

func (vs *KeyDigitalVideoSwitcher) GetInfo(ctx context.Context) (interface{}, error)

GetInfo .

func (*KeyDigitalVideoSwitcher) GetInputByOutput

func (vs *KeyDigitalVideoSwitcher) GetInputByOutput(ctx context.Context, output string) (string, error)

GetInputByOutput .

func (*KeyDigitalVideoSwitcher) SetInputByOutput

func (vs *KeyDigitalVideoSwitcher) SetInputByOutput(ctx context.Context, output, input string) error

SetInputByOutput .

Jump to

Keyboard shortcuts

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