|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Timer service: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_timer_register() (ADR-005). More...
#include "rte/utils/lifecycle/rte_lifecycle.h"#include "rte/oal/timer/rte_timer.h"#include "rte_osadapter/timer/rte_osadapter_timer.h"Go to the source code of this file.
Functions | |
| rte_status_t | rte_osadapter_timer_register (const rte_osadapter_timer_t *osadapter) |
| Registers the OSAdapter timer implementation. | |
| rte_status_t | rte_timer_create (rte_timer_storage_t *storage, const rte_timer_config_t *config, rte_timer_handle_t *out_handle) |
| Creates a timer bound to caller-owned storage. Does not start it. | |
| rte_status_t | rte_timer_start (rte_timer_handle_t handle) |
| Starts (or restarts) a created timer. | |
| rte_status_t | rte_timer_stop (rte_timer_handle_t handle) |
| Stops a running timer; safe to call on an already-stopped timer. | |
| rte_status_t | rte_timer_destroy (rte_timer_handle_t handle) |
| Destroys a timer, releasing any OSAdapter resources bound to it. | |
| rte_status_t | rte_timer_now (rte_timestamp_ms_t *out_now_ms) |
| Returns the current monotonic time base used by all timers. | |
Variables | |
| static const rte_osadapter_timer_t * | s_osadapter = NULL |
| Currently registered OSAdapter, or NULL if none (ADR-005). | |
Timer service: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_timer_register() (ADR-005).
Definition in file rte_timer.c.
| rte_status_t rte_osadapter_timer_register | ( | const rte_osadapter_timer_t * | adapter | ) |
Registers the OSAdapter timer implementation.
Global variables declarations Local function declarations Global functions
| adapter | Pointer to timer operations vtable. |
REQ-OAL-TIMER-015: Follows the OSAdapter-registration contract (ADR-005 section 2.1): a NULL adapter is rejected with RTE_STATUS_INVALID_PARAM; re-registering replaces the previous OSAdapter.
Definition at line 25 of file rte_timer.c.
|
static |
Currently registered OSAdapter, or NULL if none (ADR-005).
Local makros Local types declarations Local variables declarations
Definition at line 17 of file rte_timer.c.