pub struct W(/* private fields */);
Expand description
Register cir_rxcfg
writer
Implementations§
source§impl W
impl W
sourcepub fn nthr(&mut self) -> NTHR_W<'_, 2>
pub fn nthr(&mut self) -> NTHR_W<'_, 2>
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(&mut self) -> ITHR_W<'_, 8>
pub fn ithr(&mut self) -> ITHR_W<'_, 8>
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.
sourcepub fn athr(&mut self) -> ATHR_W<'_, 16>
pub fn athr(&mut self) -> ATHR_W<'_, 16>
Bits 16:22 - Active Threshold for CIR
These bits control the duration of CIR from the idle to the active state. The duration can be calculated by ((ATHR + 1)(ATHC? Sample Clock: 128Sample Clock)).