rotel

package
v3.0.33 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_TTY_BAUD    = 115200
	DEFAULT_TTY_TIMEOUT = 100 * time.Millisecond
)

Variables

This section is empty.

Functions

func NewEvent

func NewEvent(flag gopi.RotelFlag, state *State) gopi.RotelEvent

func SetBalance

func SetBalance(this *State, args []string) (gopi.RotelFlag, error)

func SetBass

func SetBass(this *State, args []string) (gopi.RotelFlag, error)

func SetBypass

func SetBypass(this *State, args []string) (gopi.RotelFlag, error)

func SetDimmer

func SetDimmer(this *State, args []string) (gopi.RotelFlag, error)

func SetFreq

func SetFreq(this *State, args []string) (gopi.RotelFlag, error)

func SetModel

func SetModel(this *State, args []string) (gopi.RotelFlag, error)

func SetMute

func SetMute(this *State, args []string) (gopi.RotelFlag, error)

func SetPower

func SetPower(this *State, args []string) (gopi.RotelFlag, error)

func SetSource

func SetSource(this *State, args []string) (gopi.RotelFlag, error)

func SetSpeaker

func SetSpeaker(this *State, args []string) (gopi.RotelFlag, error)

func SetTreble

func SetTreble(this *State, args []string) (gopi.RotelFlag, error)

func SetUpdateMode

func SetUpdateMode(this *State, args []string) (gopi.RotelFlag, error)

func SetVolume

func SetVolume(this *State, args []string) (gopi.RotelFlag, error)

Types

type Manager

type Manager struct {
	gopi.Unit
	sync.RWMutex
	gopi.Logger
	gopi.Publisher
	State
	// contains filtered or unexported fields
}

func (*Manager) Define

func (this *Manager) Define(cfg gopi.Config) error

func (*Manager) Dispose

func (this *Manager) Dispose() error

func (*Manager) New

func (this *Manager) New(gopi.Config) error

func (*Manager) NextTrack

func (this *Manager) NextTrack() error

func (*Manager) Pause

func (this *Manager) Pause() error

func (*Manager) Play

func (this *Manager) Play() error

func (*Manager) PrevTrack

func (this *Manager) PrevTrack() error

func (*Manager) Run

func (this *Manager) Run(ctx context.Context) error

func (*Manager) SetBalance

func (this *Manager) SetBalance(loc string) error

func (*Manager) SetBass

func (this *Manager) SetBass(value int) error

func (*Manager) SetBypass

func (this *Manager) SetBypass(state bool) error

func (*Manager) SetDimmer

func (this *Manager) SetDimmer(value uint) error

func (*Manager) SetMute

func (this *Manager) SetMute(state bool) error

func (*Manager) SetPower

func (this *Manager) SetPower(state bool) error

func (*Manager) SetSource

func (this *Manager) SetSource(value string) error

func (*Manager) SetTreble

func (this *Manager) SetTreble(value int) error

func (*Manager) SetVolume

func (this *Manager) SetVolume(value uint) error

func (*Manager) Stop

func (this *Manager) Stop() error

func (*Manager) String

func (this *Manager) String() string

type State

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

func (*State) Balance

func (this *State) Balance() (string, uint)

func (*State) Bass

func (this *State) Bass() int

func (*State) Bypass

func (this *State) Bypass() bool

func (*State) Dimmer

func (this *State) Dimmer() uint

func (*State) Freq

func (this *State) Freq() string

func (*State) Model

func (this *State) Model() string

func (*State) Muted

func (this *State) Muted() bool

func (*State) Power

func (this *State) Power() bool

func (*State) Set

func (this *State) Set(param string) (gopi.RotelFlag, error)

Set sets state from data coming from amp

func (*State) Source

func (this *State) Source() string

func (*State) Speakers

func (this *State) Speakers() []string

func (*State) String

func (this *State) String() string

func (*State) Treble

func (this *State) Treble() int

func (*State) Update

func (this *State) Update() string

Update returns a query to get state

func (*State) Volume

func (this *State) Volume() uint

Jump to

Keyboard shortcuts

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