Loading...
Searching...
No Matches

ztimer mock clock backend API More...

Detailed Description

ztimer mock clock backend API

Author
Joakim NohlgÄrd joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se
Kaspar Schleiser kaspa.nosp@m.r@sc.nosp@m.hleis.nosp@m.er.d.nosp@m.e

Definition in file mock.h.

#include <stdint.h>
#include "ztimer.h"
+ Include dependency graph for mock.h:

Go to the source code of this file.

Data Structures

struct  ztimer_mock_t
 ztimer mock clock class More...
 

Functions

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_fire (ztimer_mock_t *self)
 Trigger the timer handlers.
 
void ztimer_mock_init (ztimer_mock_t *self, unsigned width)
 Constructor.