Documentation ¶
Index ¶
- Constants
- func NewEvent(flag gopi.RotelFlag, state *State) gopi.RotelEvent
- func SetBalance(this *State, args []string) (gopi.RotelFlag, error)
- func SetBass(this *State, args []string) (gopi.RotelFlag, error)
- func SetBypass(this *State, args []string) (gopi.RotelFlag, error)
- func SetDimmer(this *State, args []string) (gopi.RotelFlag, error)
- func SetFreq(this *State, args []string) (gopi.RotelFlag, error)
- func SetModel(this *State, args []string) (gopi.RotelFlag, error)
- func SetMute(this *State, args []string) (gopi.RotelFlag, error)
- func SetPower(this *State, args []string) (gopi.RotelFlag, error)
- func SetSource(this *State, args []string) (gopi.RotelFlag, error)
- func SetSpeaker(this *State, args []string) (gopi.RotelFlag, error)
- func SetTreble(this *State, args []string) (gopi.RotelFlag, error)
- func SetUpdateMode(this *State, args []string) (gopi.RotelFlag, error)
- func SetVolume(this *State, args []string) (gopi.RotelFlag, error)
- type Manager
- func (this *Manager) Define(cfg gopi.Config) error
- func (this *Manager) Dispose() error
- func (this *Manager) New(gopi.Config) error
- func (this *Manager) NextTrack() error
- func (this *Manager) Pause() error
- func (this *Manager) Play() error
- func (this *Manager) PrevTrack() error
- func (this *Manager) Run(ctx context.Context) error
- func (this *Manager) SetBalance(loc string) error
- func (this *Manager) SetBass(value int) error
- func (this *Manager) SetBypass(state bool) error
- func (this *Manager) SetDimmer(value uint) error
- func (this *Manager) SetMute(state bool) error
- func (this *Manager) SetPower(state bool) error
- func (this *Manager) SetSource(value string) error
- func (this *Manager) SetTreble(value int) error
- func (this *Manager) SetVolume(value uint) error
- func (this *Manager) Stop() error
- func (this *Manager) String() string
- type State
- func (this *State) Balance() (string, uint)
- func (this *State) Bass() int
- func (this *State) Bypass() bool
- func (this *State) Dimmer() uint
- func (this *State) Freq() string
- func (this *State) Model() string
- func (this *State) Muted() bool
- func (this *State) Power() bool
- func (this *State) Set(param string) (gopi.RotelFlag, error)
- func (this *State) Source() string
- func (this *State) Speakers() []string
- func (this *State) String() string
- func (this *State) Treble() int
- func (this *State) Update() string
- func (this *State) Volume() uint
Constants ¶
View Source
const ( DEFAULT_TTY_BAUD = 115200 DEFAULT_TTY_TIMEOUT = 100 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
func SetBalance ¶
func SetSpeaker ¶
func SetUpdateMode ¶
Types ¶
type Manager ¶
type Manager struct { gopi.Unit sync.RWMutex gopi.Logger gopi.Publisher State // contains filtered or unexported fields }
func (*Manager) SetBalance ¶
Click to show internal directories.
Click to hide internal directories.