EVNT_WR
evnt = EVNT_WR | (event_num & EVNT_SEL_MASK) << EVNT_SEL_SHIFT;
evnt = EVNT_WR | EVNT_RISE | EVNT_SINGLE;