Functions | |
| STM_API stmErrorCode_t | stmScheduleManagerInit () |
| Initialize STM schedule manager context. More... | |
| STM_API stmErrorCode_t | stmScheduleManagerInitWithDiscriminator (int32_t discriminator) |
| Initialize STM schedule manager context with a discriminator. More... | |
| STM_API stmErrorCode_t | stmScheduleManagerExitScheduler (void) |
| Set STM to the EXIT state. More... | |
| STM_API stmErrorCode_t | stmScheduleManagerExit (void) |
| Cleans up STM schedule Manager context. More... | |
| STM_API stmErrorCode_t | stmStartSchedule (uint16_t scheduleId) |
| Schedule Management API for starting Schedule Execution. More... | |
| STM_API stmErrorCode_t | stmStopSchedule (uint16_t scheduleId) |
| Schedule Management API for stopping Schedule Execution. More... | |
| STM_API stmErrorCode_t | stmRollOverSchedule (uint16_t startScheduleId, uint16_t stopScheduleId) |
| Schedule Management API for stopping current Schedule Execution and starting a new one in a per-hyperepoch fashion to minimize deadtime. More... | |
| STM_API stmErrorCode_t | stmCheckSchedulerRunning (bool *isRunning, uint16_t *scheduleId) |
| Get the current state of the scheduler and the schedule ID. More... | |
| STM_API stmErrorCode_t stmCheckSchedulerRunning | ( | bool * | isRunning, |
| uint16_t * | scheduleId | ||
| ) |
Get the current state of the scheduler and the schedule ID.
| [out] | isRunning | Pointer to a boolean to store the running state. |
| [out] | scheduleId | Pointer to a uint16_t to store the schedule ID. Note this has no meaning if isRunning is false. |
| STM_API stmErrorCode_t stmRollOverSchedule | ( | uint16_t | startScheduleId, |
| uint16_t | stopScheduleId | ||
| ) |
Schedule Management API for stopping current Schedule Execution and starting a new one in a per-hyperepoch fashion to minimize deadtime.
| STM_API stmErrorCode_t stmScheduleManagerExit | ( | void | ) |
Cleans up STM schedule Manager context.
No STM APIs can be called after this unless init apis are called again
| STM_API stmErrorCode_t stmScheduleManagerExitScheduler | ( | void | ) |
Set STM to the EXIT state.
This API may be used before stmScheduleManagerExit to allow the clients to exit without yet destroying the STM Schedule Manager context. After this API, only stmScheduleManagerExit may be called.
| STM_API stmErrorCode_t stmScheduleManagerInit | ( | ) |
Initialize STM schedule manager context.
| STM_API stmErrorCode_t stmScheduleManagerInitWithDiscriminator | ( | int32_t | discriminator | ) |
Initialize STM schedule manager context with a discriminator.
discriminator is started. Manager's context should be cleaned up with stmScheduleManagerExit() after STM has completed its execution. This API is thread-safe. Manager must call at most one of the two: stmScheduleManagerInit() or stmScheduleManagerInitWithDiscriminator(), if both are called single or multiple times, it will cause undefined behavior. There is only one schedule manager in the system. All negative values of discriminator are equivalent and the same as calling stmScheduleManagerInit() | STM_API stmErrorCode_t stmStartSchedule | ( | uint16_t | scheduleId | ) |
Schedule Management API for starting Schedule Execution.
| STM_API stmErrorCode_t stmStopSchedule | ( | uint16_t | scheduleId | ) |
Schedule Management API for stopping Schedule Execution.