clockevents: Use set/get state helper functions