pub fn events(&self) -> Events {
        let pcnt = PCNT::regs();
        let status = pcnt.u_status(NUM).read();

        Events {
            low_limit: status.l_lim().bit(),
            high_limit: status.h_lim().bit(),
            threshold0: status.thres0().bit(),
            threshold1: status.thres1().bit(),
            zero: status.zero().bit(),
        }
    }
Get the latest events for this unit.
esp-hal/src/pcnt/unit.rs