ProtoCore v1.0.16
Deterministic, zero-heap network stack for embedded targets
Loading...
Searching...
No Matches
ClockSrcArgs Struct Reference

Install a custom clock running at ticks_per_second; the library divides it down to its internal 1000 Hz. Pass (NULL, 0) to revert to the platform default. More...

#include <clock.h>

Public Attributes

protocore_clock_fn fn
 the source; NULL falls back to the platform's own
 
uint32_t ticks_per_second
 its rate, divided down to the library's
 

Detailed Description

Install a custom clock running at ticks_per_second; the library divides it down to its internal 1000 Hz. Pass (NULL, 0) to revert to the platform default.

A time source and the rate it counts at.

Definition at line 54 of file clock.h.

Member Data Documentation

◆ fn

protocore_clock_fn ClockSrcArgs::fn

the source; NULL falls back to the platform's own

Definition at line 56 of file clock.h.

◆ ticks_per_second

uint32_t ClockSrcArgs::ticks_per_second

its rate, divided down to the library's

Definition at line 57 of file clock.h.


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