lirc

package
v3.6.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package lirc implements InfraRed receiver support through native linux app lirc.

More details

See https://periph.io/device/ir/ for more details about the driver, as it requires host configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

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

Conn is an open port to lirc.

func New

func New() (*Conn, error)

New returns a IR receiver / emitter handle.

func (*Conn) Channel

func (c *Conn) Channel() <-chan ir.Message

Channel implements ir.IR.

func (*Conn) Close

func (c *Conn) Close() error

Close closes the socket to lirc. It is not a requirement to close before process termination.

func (*Conn) Codes

func (c *Conn) Codes() map[string][]string

Codes returns all the known codes.

Empty if the list was not retrieved yet.

func (*Conn) Emit

func (c *Conn) Emit(remote string, key ir.Key) error

Emit implements ir.IR.

func (*Conn) Halt

func (c *Conn) Halt() error

Halt implements conn.Resource.

It has no effect.

func (*Conn) String

func (c *Conn) String() string

String implements conn.Resource.

Jump to

Keyboard shortcuts

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