Documentation ¶
Index ¶
Constants ¶
View Source
const ( STATE_NEC_HEADER_PULSE necstate = iota STATE_NEC_HEADER_SPACE STATE_NEC_PULSE STATE_NEC_SPACE STATE_NEC_REPEAT STATE_NEC_TRAILER STATE_NEC_KEYPRESS STATE_NEC_KEYREPEAT )
View Source
const ( NEC_TOLERANCE = 25 // 25% tolerance on values APPLETV_CODE = 0x77E1 // The device code used by the AppleTV )
View Source
const ( RC5_EXPECT_FIRST_PULSE rc5state = iota RC5_EXPECT_PULSE RC5_EXPECT_SPACE )
View Source
const (
RC5_TOLERANCE = 35 // 35% tolerance on values
)
Variables ¶
View Source
var ( NEC_HEADER_PULSE = NewMarkSpace(gopi.LIRC_TYPE_PULSE, 9000, NEC_TOLERANCE) // 9ms NEC_HEADER_SPACE = NewMarkSpace(gopi.LIRC_TYPE_SPACE, 4500, NEC_TOLERANCE) // 4.5ms NEV_HEADER_REPEAT_SPACE = NewMarkSpace(gopi.LIRC_TYPE_SPACE, 2250, NEC_TOLERANCE) // 2.25ms NEC_BIT_PULSE = NewMarkSpace(gopi.LIRC_TYPE_PULSE, 563, NEC_TOLERANCE) // 650ns NEC_ONE_SPACE = NewMarkSpace(gopi.LIRC_TYPE_SPACE, 1688, NEC_TOLERANCE) // 1.6ms NEC_ZERO_SPACE = NewMarkSpace(gopi.LIRC_TYPE_SPACE, 563, NEC_TOLERANCE) // 500ns )
View Source
var ( RC5_LONG_PULSE = NewMarkSpace(gopi.LIRC_TYPE_PULSE, 1778, RC5_TOLERANCE) RC5_LONG_SPACE = NewMarkSpace(gopi.LIRC_TYPE_SPACE, 1778, RC5_TOLERANCE) RC5_SHORT_PULSE = NewMarkSpace(gopi.LIRC_TYPE_PULSE, 889, RC5_TOLERANCE) RC5_SHORT_SPACE = NewMarkSpace(gopi.LIRC_TYPE_SPACE, 889, RC5_TOLERANCE) RC5_TIMEOUT = NewMarkSpace(gopi.LIRC_TYPE_TIMEOUT, 9000, RC5_TOLERANCE) )
Functions ¶
This section is empty.
Types ¶
type CodecEvent ¶
type CodecEvent struct { Type gopi.InputType Device gopi.InputDeviceType Code uint32 }
func (*CodecEvent) Name ¶
func (this *CodecEvent) Name() string
func (*CodecEvent) String ¶
func (this *CodecEvent) String() string
type MarkSpace ¶
type MarkSpace struct { Type gopi.LIRCType Value, Min, Max uint32 }
A mark or space value
func NewMarkSpace ¶
func (*MarkSpace) GreaterThan ¶
type NEC ¶
type NEC struct {
// contains filtered or unexported fields
}
func NewNEC ¶
func NewNEC(codec gopi.InputDeviceType) *NEC
Click to show internal directories.
Click to hide internal directories.