Documentation ¶
Index ¶
- Constants
- type Config
- type Event
- type Manager
- 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, c chan<- Event) 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 RotelFlag
- func SetBalance(this *State, args []string) (RotelFlag, error)
- func SetBass(this *State, args []string) (RotelFlag, error)
- func SetBypass(this *State, args []string) (RotelFlag, error)
- func SetDimmer(this *State, args []string) (RotelFlag, error)
- func SetFreq(this *State, args []string) (RotelFlag, error)
- func SetModel(this *State, args []string) (RotelFlag, error)
- func SetMute(this *State, args []string) (RotelFlag, error)
- func SetPower(this *State, args []string) (RotelFlag, error)
- func SetSource(this *State, args []string) (RotelFlag, error)
- func SetSpeaker(this *State, args []string) (RotelFlag, error)
- func SetTreble(this *State, args []string) (RotelFlag, error)
- func SetUpdateMode(this *State, args []string) (RotelFlag, error)
- func SetVolume(this *State, args []string) (RotelFlag, error)
- 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 (s State) MarshalJSON() ([]byte, error)
- func (this *State) Model() string
- func (this *State) Muted() bool
- func (this *State) Power() bool
- func (this *State) Set(param string) (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 = "/dev/ttyUSB0" DEFAULT_TTY_BAUD = 115200 DEFAULT_TTY_TIMEOUT = 100 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct { *State // contains filtered or unexported fields }
func NewWithConfig ¶
func (*Manager) SetBalance ¶
type RotelFlag ¶
type RotelFlag uint16
RotelFlag provides flags on state changes
const ( ROTEL_FLAG_POWER RotelFlag = (1 << iota) ROTEL_FLAG_VOLUME ROTEL_FLAG_MUTE ROTEL_FLAG_BASS ROTEL_FLAG_TREBLE ROTEL_FLAG_BALANCE ROTEL_FLAG_SOURCE ROTEL_FLAG_FREQ ROTEL_FLAG_BYPASS ROTEL_FLAG_SPEAKER ROTEL_FLAG_DIMMER ROTEL_FLAG_NONE RotelFlag = 0 ROTEL_FLAG_MIN = ROTEL_FLAG_POWER ROTEL_FLAG_MAX = ROTEL_FLAG_DIMMER )
func (RotelFlag) FlagString ¶
Click to show internal directories.
Click to hide internal directories.