dra

package module
v0.0.0-...-d32f319 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2018 License: MIT Imports: 5 Imported by: 2

README

go-dra

Library for controlling the Denon DRA-100 amp

GoDoc

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DRA

type DRA struct {
	OnUpdate chan string
	// contains filtered or unexported fields
}

DRA struct representing a single Denon DRA amplifier

func NewFromAddr

func NewFromAddr(addr string) (*DRA, error)

func NewFromConn

func NewFromConn(conn net.Conn) *DRA

func (*DRA) Close

func (dra *DRA) Close() error

func (*DRA) GetInput

func (dra *DRA) GetInput() string

GetInput returns current input

func (*DRA) GetMasterVolume

func (dra *DRA) GetMasterVolume() int

GetMasterVolume returns master volume

func (*DRA) GetMute

func (dra *DRA) GetMute() bool

GetMute return mute

func (*DRA) GetPower

func (dra *DRA) GetPower() bool

GetPower returns power status

func (*DRA) Send

func (dra *DRA) Send(cmd ...string) error

func (*DRA) SetInput

func (dra *DRA) SetInput(input string) error

SetInput sets DRA input

func (*DRA) SetMasterVolume

func (dra *DRA) SetMasterVolume(value int) error

SetMasterVolume sets DRA master volume value should be between 0 - 91

func (*DRA) SetMute

func (dra *DRA) SetMute(value bool) error

SetMute sets DRA mute

func (*DRA) SetPower

func (dra *DRA) SetPower(value bool) error

SetPower sets power mode of dra (true = on, false = standby)

Jump to

Keyboard shortcuts

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