Documentation
¶
Index ¶
- func PrettyPrint(input interface{})
- func StringToInt(input string) (result int)
- func Test()
- type Adapter
- type Controller
- func (ctrl Controller) GetActiveSource() (result Source)
- func (ctrl Controller) GetPowerStatus() (result bool)
- func (ctrl Controller) GetSources() (result []Source)
- func (ctrl *Controller) Mute() (result bool)
- func (ctrl Controller) PowerOff() (result bool)
- func (ctrl Controller) PowerOn() (result bool)
- func (ctrl *Controller) SelectHDMI(hdmi int) (result bool)
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyPrint ¶
func PrettyPrint(input interface{})
func StringToInt ¶ added in v1.0.3
Types ¶
type Controller ¶
type Controller struct { Configuration C.libcec_configuration Connection C.libcec_connection_t ConnComm *C.char Adapter Adapter LogicalAddress C.cec_logical_address LogicalPhysicalAddress C.cec_logical_address PhysicalAddress [2]byte }
func New ¶
func New() (result Controller)
sudo find / -name cecc.h /usr/local/Cellar/libcec/6.0.2/include/libcec/cecc.h
func (Controller) GetActiveSource ¶
func (ctrl Controller) GetActiveSource() (result Source)
func (Controller) GetPowerStatus ¶
func (ctrl Controller) GetPowerStatus() (result bool)
func (Controller) GetSources ¶
func (ctrl Controller) GetSources() (result []Source)
func (*Controller) Mute ¶
func (ctrl *Controller) Mute() (result bool)
func (Controller) PowerOff ¶
func (ctrl Controller) PowerOff() (result bool)
func (Controller) PowerOn ¶
func (ctrl Controller) PowerOn() (result bool)
func (*Controller) SelectHDMI ¶
func (ctrl *Controller) SelectHDMI(hdmi int) (result bool)
Click to show internal directories.
Click to hide internal directories.