pub fn interrupt_is_set(&self) -> bool {
        let pcnt = PCNT::regs();
        pcnt.int_raw().read().cnt_thr_event_u(NUM as u8).bit()
    }
Returns true if an interrupt is active for this unit.
esp-hal/src/pcnt/unit.rs