denon

package
v0.0.0-...-080782a Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2014 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AVRX2000 = map[string]Commander{
	"poweron":    PlainCommand{"ZMON"},
	"poweroff":   PlainCommand{"PWSTANDBY"},
	"volumeup":   PlainCommand{"MVUP"},
	"volumedown": PlainCommand{"MVDOWN"},
	"volume":     VolumeCommand{"MV%02d", 0, 98},
	"muteon":     PlainCommand{"MUON"},
	"muteoff":    PlainCommand{"MUOFF"},

	"example": RangeCommand{"MV%02d", 0, 98},

	"input1": PlainCommand{"SISAT/CBL"},
	"input2": PlainCommand{"SIDVD"},
	"input3": PlainCommand{"SIBD"},
	"input4": PlainCommand{"SIGAME"},
	"input5": PlainCommand{"SISMPLAY"},
	"input6": PlainCommand{"SICD"},
	"input7": PlainCommand{"SIAUX1"},

	"z2poweron":  PlainCommand{"Z2ON"},
	"z2poweroff": PlainCommand{"Z2OFF"},

	"moveup":    PlainCommand{"MNCUP"},
	"movedown":  PlainCommand{"MNCDOWN"},
	"moveleft":  PlainCommand{"MNCLT"},
	"moveright": PlainCommand{"MNCRT"},
	"select":    PlainCommand{"MNENT"},
	"back":      PlainCommand{"MNRTN"},
	"option":    PlainCommand{"MNOPT"},
	"info":      PlainCommand{"MNINF"},
	"setupon":   PlainCommand{"MNMEN ON"},
	"setupoff":  PlainCommand{"MNMEN OFF"},
}

Functions

func Create

func Create(name string, params map[string]string) (targets.Target, error)

func Register

func Register()

Types

type Commander

type Commander interface {
	Command(args ...string) (string, error)
}

type Denon

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

func (*Denon) Capabilities

func (d *Denon) Capabilities() []string

func (*Denon) Commands

func (d *Denon) Commands() map[string]*targets.Command

func (*Denon) SendCommand

func (d *Denon) SendCommand(cmd string, args ...string) error

func (*Denon) Stop

func (d *Denon) Stop() error

type PlainCommand

type PlainCommand struct {
	Send string
}

func (PlainCommand) Command

func (d PlainCommand) Command(args ...string) (string, error)

type RangeCommand

type RangeCommand struct {
	Send     string
	Min, Max int
}

func (RangeCommand) Command

func (d RangeCommand) Command(args ...string) (string, error)

type ToggleCommand

type ToggleCommand struct {
	Query     string
	OnString  string
	OffString string
}

func (ToggleCommand) Command

func (d ToggleCommand) Command(args ...string) (string, error)

type VolumeCommand

type VolumeCommand struct {
	Send     string
	Min, Max int
}

func (VolumeCommand) Command

func (d VolumeCommand) Command(args ...string) (string, error)

Jump to

Keyboard shortcuts

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