void ztimer_mock_fire(ztimer_mock_t *self)
Trigger the timer handlers.
 
void ztimer_mock_advance(ztimer_mock_t *self, uint32_t val)
Advance the mock clock counter and update target.
 
void ztimer_mock_jump(ztimer_mock_t *self, uint32_t target)
Set the mock clock counter value without updating timer target.
 
void ztimer_mock_init(ztimer_mock_t *self, unsigned width)
Constructor.
 
uint32_t target
ticks left until alarm is hit
 
unsigned set
Number of calls to ztimer_ops_t::set.
 
uint32_t now
current counter value
 
unsigned cancel
Number of calls to ztimer_ops_t::cancel.
 
unsigned stop
Number of calls to ztimer_ops_t::stop.
 
unsigned now
Number of calls to ztimer_ops_t::now.
 
ztimer_clock_t super
superclass instance
 
unsigned running
flag for checking if the timer is running
 
unsigned start
Number of calls to ztimer_ops_t::start.
 
uint32_t mask
counter mask
 
unsigned armed
flag for checking if a target has been set