Type Alias d1_pac::cir_rx::cir_rxcfg::ITHR_W

source ·
pub type ITHR_W<'a, const O: u8> = FieldWriter<'a, u32, CIR_RXCFG_SPEC, u8, u8, 8, O>;
Expand description

Field ithr writer - 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.

Aliased Type§

struct ITHR_W<'a, const O: u8> { /* private fields */ }