clockevents: Provide functions to set and get the state