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

Watchdog configuration. More...

#include <sapi_watchdog.h>

Data Fields

sapi_watchdog_type_t type
const char * name
sapi_duration_ms_t timeout_ms
sapi_watchdog_action_t action
void(*) custom_action (void *ctx)
void * context

Detailed Description

Watchdog configuration.

Defines watchdog behavior: type, timeout, recovery action.

Definition at line 75 of file sapi_watchdog.h.

Field Documentation

◆ type

sapi_watchdog_type_t sapi_watchdog_config_t::type

Watchdog type (system/task/channel)

Definition at line 76 of file sapi_watchdog.h.

◆ name

const char* sapi_watchdog_config_t::name

Watchdog name (for logging)

Definition at line 77 of file sapi_watchdog.h.

◆ timeout_ms

sapi_duration_ms_t sapi_watchdog_config_t::timeout_ms

Timeout deadline (ms)

Definition at line 78 of file sapi_watchdog.h.

◆ action

sapi_watchdog_action_t sapi_watchdog_config_t::action

Recovery action on timeout

Definition at line 79 of file sapi_watchdog.h.

◆ custom_action

void(*) sapi_watchdog_config_t::custom_action(void *ctx)

Handler callback - required (sapi_watchdog_create() returns SAPI_STATUS_INVALID_PARAM otherwise) when action is SAPI_WATCHDOG_ACTION_CUSTOM or SAPI_WATCHDOG_ACTION_FAILOVER; unused for the other actions. REQ-WATCHDOG-001

Definition at line 80 of file sapi_watchdog.h.

◆ context

void* sapi_watchdog_config_t::context

Context for callback

Definition at line 85 of file sapi_watchdog.h.


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