|
Safe API Framework 0.1.0 build 384e6ae
Layered API framework for safety-related applications (ERTMS RBC reference targeting CENELEC EN 50128 SIL 4)
|
Periodic/cyclic safety task creation with fixed priorities (ADR-001). More...
Files | |
| file | src/oal/task/rte_task.c |
| Task service: validates parameters, then dispatches to the OSAdapter registered via rte_osadapter_task_register() (ADR-005). | |
Data Structures | |
| struct | rte_task_config_t |
| Configuration for rte_task_create(). More... | |
Typedefs | |
| typedef struct rte_task_impl_s * | rte_task_handle_t |
| Opaque handle to a created task, returned by rte_task_create(). | |
| typedef void(*) | rte_task_entry_t(void *user_ctx) |
| Task entry point, invoked cyclically at the configured period. | |
Functions | |
| RTE_DECLARE_STORAGE (rte_task_storage_t, 128U) | |
| Caller-owned, fixed-size storage backing one rte_task_handle_t. | |
| rte_status_t | rte_task_create (rte_task_storage_t *storage, const rte_task_config_t *config, rte_task_handle_t *out_handle) |
| Creates a task in the suspended state. | |
| rte_status_t | rte_task_start (rte_task_handle_t handle) |
| Starts a created task. | |
| rte_status_t | rte_task_suspend (rte_task_handle_t handle) |
| Suspends a running task. | |
| rte_status_t | rte_task_destroy (rte_task_handle_t handle) |
| Terminates and destroys a task. | |
Periodic/cyclic safety task creation with fixed priorities (ADR-001).
| typedef struct rte_task_impl_s* rte_task_handle_t |
Opaque handle to a created task, returned by rte_task_create().
Definition at line 32 of file rte_task.h.
| typedef void(*) rte_task_entry_t(void *user_ctx) |
Task entry point, invoked cyclically at the configured period.
Definition at line 35 of file rte_task.h.
| rte_status_t rte_task_create | ( | rte_task_storage_t * | storage, |
| const rte_task_config_t * | config, | ||
| rte_task_handle_t * | out_handle ) |
Creates a task in the suspended state.
| storage | Caller-owned storage for the handle's state. Must not be NULL. |
| config | Task configuration. Must not be NULL; config->entry must not be NULL. |
| out_handle | Receives the created task's handle. Must not be NULL. |
Definition at line 44 of file rte_task.c.
| rte_status_t rte_task_start | ( | rte_task_handle_t | handle | ) |
Starts a created task.
| handle | Task handle. Must not be NULL. |
Definition at line 77 of file rte_task.c.
| rte_status_t rte_task_suspend | ( | rte_task_handle_t | handle | ) |
Suspends a running task.
| handle | Task handle. Must not be NULL. |
Definition at line 103 of file rte_task.c.
| rte_status_t rte_task_destroy | ( | rte_task_handle_t | handle | ) |
Terminates and destroys a task.
| handle | Task handle. Must not be NULL. Invalid to use after this call. |
Definition at line 120 of file rte_task.c.