All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

ztimer mock clock class More...

Detailed Description

ztimer mock clock class

Definition at line 40 of file mock.h.

#include <mock.h>

Data Fields

ztimer_clock_t super
 superclass instance
 
uint32_t mask
 counter mask
 
uint32_t now
 current counter value
 
uint32_t target
 ticks left until alarm is hit
 
unsigned armed
 flag for checking if a target has been set
 
unsigned running
 flag for checking if the timer is running
 
struct { 
 
   unsigned   now 
 Number of calls to ztimer_ops_t::now. More...
 
   unsigned   set 
 Number of calls to ztimer_ops_t::set. More...
 
   unsigned   cancel 
 Number of calls to ztimer_ops_t::cancel. More...
 
   unsigned   start 
 Number of calls to ztimer_ops_t::start. More...
 
   unsigned   stop 
 Number of calls to ztimer_ops_t::stop. More...
 
calls 
 Struct holding number of calls to each operation.
 

Field Documentation

◆ armed

unsigned ztimer_mock_t::armed

flag for checking if a target has been set

Definition at line 45 of file mock.h.

◆ cancel

unsigned ztimer_mock_t::cancel

Number of calls to ztimer_ops_t::cancel.

Definition at line 51 of file mock.h.

◆ mask

uint32_t ztimer_mock_t::mask

counter mask

Definition at line 42 of file mock.h.

◆ now [1/2]

uint32_t ztimer_mock_t::now

current counter value

Definition at line 43 of file mock.h.

◆ now [2/2]

unsigned ztimer_mock_t::now

Number of calls to ztimer_ops_t::now.

Definition at line 49 of file mock.h.

◆ running

unsigned ztimer_mock_t::running

flag for checking if the timer is running

Definition at line 46 of file mock.h.

◆ set

unsigned ztimer_mock_t::set

Number of calls to ztimer_ops_t::set.

Definition at line 50 of file mock.h.

◆ start

unsigned ztimer_mock_t::start

Number of calls to ztimer_ops_t::start.

Definition at line 52 of file mock.h.

◆ stop

unsigned ztimer_mock_t::stop

Number of calls to ztimer_ops_t::stop.

Definition at line 53 of file mock.h.

◆ super

ztimer_clock_t ztimer_mock_t::super

superclass instance

Definition at line 41 of file mock.h.

◆ target

uint32_t ztimer_mock_t::target

ticks left until alarm is hit

Definition at line 44 of file mock.h.


The documentation for this struct was generated from the following file: