Safe API Framework
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
Loading...
Searching...
No Matches
sapi_timer_config_t Struct Reference

Configuration for sapi_timer_create(). More...

#include <sapi_timer.h>

Data Fields

sapi_timer_mode_t mode
sapi_duration_ms_t period_ms
sapi_timer_callback_t callback
void * user_ctx

Detailed Description

Configuration for sapi_timer_create().

Definition at line 52 of file sapi_timer.h.

Field Documentation

◆ mode

sapi_timer_mode_t sapi_timer_config_t::mode

One-shot or periodic.

Definition at line 54 of file sapi_timer.h.

◆ period_ms

sapi_duration_ms_t sapi_timer_config_t::period_ms

Period (or delay for one-shot). Must be > 0.

Definition at line 55 of file sapi_timer.h.

◆ callback

sapi_timer_callback_t sapi_timer_config_t::callback

Must not be NULL.

Definition at line 56 of file sapi_timer.h.

◆ user_ctx

void* sapi_timer_config_t::user_ctx

Passed back to callback, may be NULL.

Definition at line 57 of file sapi_timer.h.


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