Package org.harctoolbox.jirc
Class IrRemote
java.lang.Object
org.harctoolbox.jirc.IrRemote
This class represents a remote in Lirc, with all its parameters.
It should preferably not be used outside of the package, and may be package private in a future version.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) int
detecing _very short_ pulses is difficult with relative tolerance for some remotes, this is an _absolute_ tolerance to solve this problem usually you can say 0 here(package private) int
(package private) int
bits (length of code)(package private) static final int
encoding found on Bang & Olufsen remote(package private) static final int
compatibility mode for REVERSE flag(package private) static final int
signal length+gap is always constant(package private) static final int
(package private) int
0 < duty cycle ≤ 100(package private) int
eps (_relative_ tolerance)(package private) int
flags(package private) int
modulation frequency(package private) int
time between signals in usecs(package private) int
time between signals in usecs(package private) static final int
encoding found on Goldstar remote(package private) static final int
encoding found on Grundig remote(package private) long
mask defines which bits can be ignored when matching a code(package private) static final int
definitions for flags(package private) IrNCode
code received or sent last(package private) Date
time last_code was received or sent(package private) int
how long is the longest gap(package private) int
(package private) int
gap range(package private) int
(package private) int
meaningful only if remote sends a repeat code: in this case this value indicates how often the real code is repeated before the repeat code is being sent(package private) int
how long is the shortest gap(package private) int
(package private) int
remember gap for CONST_LENGTH remotes(package private) int
code is repeated at least x times code sent once .(package private) int
(package private) int
how long is the shortest signal including gap(package private) IrRemote
(package private) static final int
no foot for key repeats(package private) static final int
additional flags: can be or-red together with protocol flag(package private) int
foot(package private) int
pulse and space lengths of: header(package private) int
leading pulse(package private) int
1(package private) long
data which the remote sends after actual keycode(package private) int
length of post_data(package private) int
signal between keycode and post_code(package private) int
(package private) long
data which the remote sends before actual keycode(package private) int
length of pre_data(package private) int
signal between pre_data and keycode(package private) int
(package private) int
indicate repeating(package private) int
3 (only used for RC-MM)(package private) int
trailing pulse(package private) int
2 (only used for RC-MM)(package private) int
0(package private) static final int
for internal use only(package private) static final int
(package private) static final int
IR data follows RC6 protocol(package private) long
RC-6 doubles signal length of some bits(package private) static final int
IR data follows RC-MM protocol(package private) boolean
set by release generator(package private) int
(package private) int
time between two repeat codes if different from gap(package private) static final int
header is also sent before repeat code(package private) static final int
stop repeating after 600 signals (approx.(package private) int
(package private) static final int
(package private) int
(package private) int
(package private) static final int
IR data is shift encoded (name obsolete) Hm, RC6 protocols seem to have changed the biphase semantics so that lircd will calculate the bit-wise complement of the codes.(package private) int
(package private) static final int
IR data is space encoded(package private) static final int
bits are encoded as space+pulse(package private) int
(package private) int
(package private) int
(package private) int
suppress unwanted repeats(package private) int
(package private) int
obsolete(package private) long
previously only one bit called toggle_bit(package private) long
(package private) IrNCode
toggle code received or sent last(package private) long
Sharp (?) error detection scheme(package private) int
(package private) static final int
XMP protocol -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
(package private) static int
(package private) static int
bits_set
(long data) (package private) static long
gen_mask
(int bits) getCodes()
int
int
getFreq()
getName()
static IrRemote
(package private) boolean
has_foot()
(package private) static boolean
boolean
static boolean
has_header
(IrRemote remote) (package private) static boolean
has_ignore_mask
(IrRemote remote) boolean
has_post()
(package private) static boolean
boolean
has_pre()
(package private) static boolean
boolean
(package private) static boolean
has_repeat
(IrRemote remote) boolean
(package private) static boolean
has_repeat_gap
(IrRemote remote) boolean
(package private) static boolean
has_toggle_bit_mask
(IrRemote remote) (package private) boolean
(package private) static boolean
has_toggle_mask
(IrRemote remote) (package private) boolean
(package private) static boolean
is_biphase
(IrRemote remote) boolean
is_bo()
static boolean
boolean
is_const()
(package private) static boolean
boolean
static boolean
is_goldstar
(IrRemote remote) boolean
static boolean
is_grundig
(IrRemote remote) (package private) static boolean
is_pulse
(int data) boolean
is_raw()
static boolean
boolean
is_rc5()
static boolean
boolean
is_rc6()
static boolean
boolean
is_rcmm()
static boolean
(package private) static boolean
is_space
(int data) boolean
(package private) static boolean
is_space_enc
(IrRemote remote) boolean
static boolean
is_space_first
(IrRemote remote) boolean
is_xmp()
static boolean
boolean
int
max_gap()
(package private) static int
int
min_gap()
(package private) static int
static org.harctoolbox.girr.RemoteSet
newRemoteSet
(Collection<IrRemote> remotes, String configFilename, String creatingUser) (package private) org.harctoolbox.ircore.ModulatedIrSequence
(package private) static long
reverse
(long data, int bits) void
set_protocol
(int protocol) (package private) static void
set_protocol
(IrRemote remote, int protocol) static void
setRepeat_remote
(IrRemote remote) void
(package private) org.harctoolbox.girr.Command
(package private) org.harctoolbox.ircore.IrSignal
toIrSignal
(IrNCode code) (package private) org.harctoolbox.girr.Command
toLircCodeCommand
(IrNCode code) org.harctoolbox.ircore.ModulatedIrSequence
toModulatedIrSequence
(int[] array) org.harctoolbox.ircore.ModulatedIrSequence
toModulatedIrSequence
(List<Integer> signals) org.harctoolbox.girr.Remote
toRemote()
(package private) org.harctoolbox.girr.Command
toTimedCommand
(IrNCode code)
-
Field Details
-
IR_PROTOCOL_MASK
static final int IR_PROTOCOL_MASKdefinitions for flags- See Also:
-
RAW_CODES
static final int RAW_CODESfor internal use only- See Also:
-
RC5
static final int RC5- See Also:
-
SHIFT_ENC
static final int SHIFT_ENCIR data is shift encoded (name obsolete) Hm, RC6 protocols seem to have changed the biphase semantics so that lircd will calculate the bit-wise complement of the codes. But this is only a guess as I did not have a datasheet...- See Also:
-
RC6
static final int RC6IR data follows RC6 protocol- See Also:
-
RCMM
static final int RCMMIR data follows RC-MM protocol- See Also:
-
SPACE_ENC
static final int SPACE_ENCIR data is space encoded- See Also:
-
SPACE_FIRST
static final int SPACE_FIRSTbits are encoded as space+pulse- See Also:
-
GOLDSTAR
static final int GOLDSTARencoding found on Goldstar remote- See Also:
-
GRUNDIG
static final int GRUNDIGencoding found on Grundig remote- See Also:
-
BO
static final int BOencoding found on Bang & Olufsen remote- See Also:
-
XMP
static final int XMPXMP protocol- See Also:
-
REVERSE
static final int REVERSE- See Also:
-
NO_HEAD_REP
static final int NO_HEAD_REPadditional flags: can be or-red together with protocol flag- See Also:
-
NO_FOOT_REP
static final int NO_FOOT_REPno foot for key repeats- See Also:
-
CONST_LENGTH
static final int CONST_LENGTHsignal length+gap is always constant- See Also:
-
REPEAT_HEADER
static final int REPEAT_HEADERheader is also sent before repeat code- See Also:
-
COMPAT_REVERSE
static final int COMPAT_REVERSEcompatibility mode for REVERSE flag- See Also:
-
REPEAT_MAX_DEFAULT
static final int REPEAT_MAX_DEFAULTstop repeating after 600 signals (approx. 1 minute). update technical.html when changing this value- See Also:
-
DEFAULT_FREQ
static final int DEFAULT_FREQ- See Also:
-
bits
int bitsbits (length of code) -
flags
int flagsflags -
eps
int epseps (_relative_ tolerance) -
aeps
int aepsdetecing _very short_ pulses is difficult with relative tolerance for some remotes, this is an _absolute_ tolerance to solve this problem usually you can say 0 here -
phead
int pheadpulse and space lengths of: header -
shead
int shead -
pthree
int pthree3 (only used for RC-MM) -
sthree
int sthree -
ptwo
int ptwo2 (only used for RC-MM) -
stwo
int stwo -
pone
int pone1 -
sone
int sone -
pzero
int pzero0 -
szero
int szero -
plead
int pleadleading pulse -
ptrail
int ptrailtrailing pulse -
pfoot
int pfootfoot -
sfoot
int sfoot -
prepeat
int prepeatindicate repeating -
srepeat
int srepeat -
pre_data_bits
int pre_data_bitslength of pre_data -
pre_data
long pre_datadata which the remote sends before actual keycode -
post_data_bits
int post_data_bitslength of post_data -
post_data
long post_datadata which the remote sends after actual keycode -
pre_p
int pre_psignal between pre_data and keycode -
pre_s
int pre_s -
post_p
int post_psignal between keycode and post_code -
post_s
int post_s -
gap
int gaptime between signals in usecs -
gap2
int gap2time between signals in usecs -
repeat_gap
int repeat_gaptime between two repeat codes if different from gap -
toggle_bit
int toggle_bitobsolete -
toggle_bit_mask
long toggle_bit_maskpreviously only one bit called toggle_bit -
suppress_repeat
int suppress_repeatsuppress unwanted repeats -
min_repeat
int min_repeatcode is repeated at least x times code sent once . min_repeat=0 -
min_code_repeat
int min_code_repeatmeaningful only if remote sends a repeat code: in this case this value indicates how often the real code is repeated before the repeat code is being sent -
freq
int freqmodulation frequency -
duty_cycle
int duty_cycle0 < duty cycle ≤ 100 -
baud
int baud -
toggle_mask
long toggle_maskSharp (?) error detection scheme -
rc6_mask
long rc6_maskRC-6 doubles signal length of some bits -
ignore_mask
long ignore_maskmask defines which bits can be ignored when matching a code -
toggle_bit_mask_state
long toggle_bit_mask_state -
toggle_mask_state
int toggle_mask_state -
repeat_countdown
int repeat_countdown -
last_code
IrNCode last_codecode received or sent last -
toggle_code
IrNCode toggle_codetoggle code received or sent last -
reps
int reps -
last_send
Date last_sendtime last_code was received or sent -
min_remaining_gap
int min_remaining_gapremember gap for CONST_LENGTH remotes -
max_remaining_gap
int max_remaining_gapgap range -
min_total_signal_length
int min_total_signal_lengthhow long is the shortest signal including gap -
min_gap_length
int min_gap_lengthhow long is the shortest gap -
max_gap_length
int max_gap_lengthhow long is the longest gap -
min_pulse_length
int min_pulse_length -
max_pulse_length
int max_pulse_length -
min_space_length
int min_space_length -
max_space_length
int max_space_length -
release_detected
boolean release_detectedset by release generator -
next
IrRemote next
-
-
Constructor Details
-
IrRemote
-
-
Method Details
-
getRepeat_remote
-
setRepeat_remote
-
newRemoteSet
public static org.harctoolbox.girr.RemoteSet newRemoteSet(Collection<IrRemote> remotes, String configFilename, String creatingUser) -
bit_count
-
bits_set
static int bits_set(long data) -
reverse
static long reverse(long data, int bits) -
is_pulse
static boolean is_pulse(int data) -
is_space
static boolean is_space(int data) -
has_repeat
-
set_protocol
-
is_raw
-
is_space_enc
-
is_space_first
-
is_rc5
-
is_rc6
-
is_biphase
-
is_rcmm
-
is_goldstar
-
is_grundig
-
is_bo
-
is_xmp
-
is_const
-
has_repeat_gap
-
has_pre
-
has_post
-
has_header
-
has_foot
-
has_toggle_bit_mask
-
has_ignore_mask
-
has_toggle_mask
-
min_gap
-
max_gap
-
gen_mask
static long gen_mask(int bits) -
getApplicationData
-
toRemote
public org.harctoolbox.girr.Remote toRemote() -
toCommand
-
toLircCodeCommand
-
toTimedCommand
-
toIrSignal
-
getName
-
isTimingInfo
public boolean isTimingInfo() -
getSource
-
setSource
-
getCodes
-
getFreq
public int getFreq() -
getDutyCycle
public int getDutyCycle() -
bit_count
public int bit_count() -
has_repeat
public boolean has_repeat() -
set_protocol
public void set_protocol(int protocol) -
is_raw
public boolean is_raw() -
is_space_enc
public boolean is_space_enc() -
is_space_first
public boolean is_space_first() -
is_rc5
public boolean is_rc5() -
is_rc6
public boolean is_rc6() -
is_biphase
boolean is_biphase() -
is_rcmm
public boolean is_rcmm() -
is_goldstar
public boolean is_goldstar() -
is_grundig
public boolean is_grundig() -
is_bo
public boolean is_bo() -
is_xmp
public boolean is_xmp() -
is_const
public boolean is_const() -
has_repeat_gap
public boolean has_repeat_gap() -
has_pre
public boolean has_pre() -
has_post
public boolean has_post() -
has_header
public boolean has_header() -
has_foot
boolean has_foot() -
has_toggle_bit_mask
public boolean has_toggle_bit_mask() -
has_toggle_mask
boolean has_toggle_mask() -
min_gap
public int min_gap() -
max_gap
public int max_gap() -
lircProtocolType
-
toModulatedIrSequence
public org.harctoolbox.ircore.ModulatedIrSequence toModulatedIrSequence(int[] array) -
toModulatedIrSequence
-
render
-