Documentation ¶
Index ¶
- func Control(c *cli.Context, command string) error
- func Ping(c *cli.Context) error
- func Status(c *cli.Context, parameters []string) error
- type EmotivaController
- func (ec *EmotivaController) Close() error
- func (ec *EmotivaController) Control(command string, target interface{}) (string, error)
- func (ec *EmotivaController) Ping() (*EmotivaTransponder, error)
- func (ec *EmotivaController) ReadControl() error
- func (ec *EmotivaController) ReadNotify() (*Notify, error)
- func (ec *EmotivaController) Status(commands []string, target interface{}) (string, error)
- func (ec *EmotivaController) Subscribe(commands []string, target interface{}) (string, error)
- func (ec *EmotivaController) WriteControl(body string) error
- type EmotivaTransponder
- type EmotivaTransponderControl
- type Notify
- type Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EmotivaController ¶
type EmotivaController struct { InfoPort *net.Conn SetupPortTCP *net.Conn MenuNotifyPort *net.Conn // contains filtered or unexported fields }
func NewEmotivaController ¶
func NewEmotivaController(address string) (*EmotivaController, error)
func (*EmotivaController) Close ¶
func (ec *EmotivaController) Close() error
func (*EmotivaController) Control ¶
func (ec *EmotivaController) Control(command string, target interface{}) (string, error)
func (*EmotivaController) Ping ¶
func (ec *EmotivaController) Ping() (*EmotivaTransponder, error)
func (*EmotivaController) ReadControl ¶
func (ec *EmotivaController) ReadControl() error
func (*EmotivaController) ReadNotify ¶
func (ec *EmotivaController) ReadNotify() (*Notify, error)
func (*EmotivaController) Status ¶
func (ec *EmotivaController) Status(commands []string, target interface{}) (string, error)
func (*EmotivaController) Subscribe ¶
func (ec *EmotivaController) Subscribe(commands []string, target interface{}) (string, error)
func (*EmotivaController) WriteControl ¶
func (ec *EmotivaController) WriteControl(body string) error
type EmotivaTransponder ¶
type EmotivaTransponderControl ¶
type EmotivaTransponderControl struct { Version string `xml:"version"` ControlPort string `xml:"controlPort"` NotifyPort string `xml:"notifyPort"` InfoPort string `xml:"infoPort"` SetupPortTCP string `xml:"setupPortTCP"` MenuNotifyPort string `xml:"menuNotifyPort"` SetupXMLVersion string `xml:"setupXMLVersion"` }
type Notify ¶
type Notify struct { XMLName xml.Name `xml:"emotivaNotify"` Mode Value `xml:"mode"` SelectedMode Value `xml:"selected_mode"` Center Value `xml:"center"` Subwoofer Value `xml:"subwoofer"` Surround Value `xml:"surround"` Back Value `xml:"back"` Width Value `xml:"width"` Height Value `xml:"height"` ModeAuto Value `xml:"mode_auto"` ModeMusic Value `xml:"mode_music"` ModeMovie Value `xml:"mode_movie"` SelectedMovieMusic Value `xml:"selected_movie_music"` ModeDirect Value `xml:"mode_direct"` ModeSurround Value `xml:"mode_surround"` ModeRefStereo Value `xml:"mode_ref_stereo"` ModeDolby Value `xml:"mode_dolby"` ModeDts Value `xml:"mode_dts"` ModeAllStereo Value `xml:"mode_all_stereo"` ModeStereo Value `xml:"mode_stereo"` }
Click to show internal directories.
Click to hide internal directories.