pub struct R(/* private fields */);
Expand description
Register cir_rxcfg
reader
Implementations§
source§impl R
impl R
sourcepub fn nthr(&self) -> NTHR_R
pub fn nthr(&self) -> NTHR_R
Bits 2:7 - Noise Threshold for CIR
When the duration of the signal pulse (high or low level) is less than NTHR, the pulse is taken as noise and should be discarded by hardware.
sourcepub fn ithr(&self) -> ITHR_R
pub fn ithr(&self) -> ITHR_R
Bits 8:15 - Idle Threshold for CIR
The Receiver uses it to decide whether the CIR command is received. If there is no CIR signal on the air, the receiver is staying in IDLE status. One active pulse will bring the receiver from IDLE status to Receiving status. After the CIR receiver ends, the inputting signal will keep the specified level (high or low level) for a long time. The receiver can use this idle signal duration to decide that it has received the CIR command. The corresponding flag is asserted. If the corresponding interrupt is enabled, the interrupt line is asserted to the CPU.
When the duration of the signal keeps one status (high or low level) for the specified duration ((ITHR + 1)*128 sample_clk), this means that the previous CIR command is finished.