OS
v7.3.3
Documentation
|
API interface for the STimers extension. More...
Data Structures | |
struct | qSTimer_t |
A STimer(Software Timer) object. More... | |
Functions | |
qBool_t | qSTimer_Reload (qSTimer_t *const t) |
Reload the STimer with the previous specified time. | |
qBool_t | qSTimer_Set (qSTimer_t *const t, const qTime_t tTime) |
Set the expiration time for a STimer. On success, the STimer gets armed immediately. | |
qBool_t | qSTimer_Expired (const qSTimer_t *const t) |
Non-Blocking STimer check. | |
qBool_t | qSTimer_FreeRun (qSTimer_t *const t, const qTime_t tTime) |
Non-Blocking STimer check with automatic arming. | |
qClock_t | qSTimer_Elapsed (const qSTimer_t *const t) |
Retrieve the elapsed time in epochs. | |
qClock_t | qSTimer_Remaining (const qSTimer_t *const t) |
Retrieve the remaining time in epochs. | |
qBool_t | qSTimer_Disarm (qSTimer_t *const t) |
Disarms the STimer object. | |
qBool_t | qSTimer_Status (const qSTimer_t *const t) |
Get the current status of the STimer (Armed or Disarmed) | |
API interface for the STimers extension.
Retrieve the elapsed time in epochs.
[in] | t | A pointer to the STimer object. |
Non-Blocking STimer check with automatic arming.
Behavior: If disarmed, it gets armed immediately with the specified time.
If armed, the time argument is ignored and the API only checks for expiration. When the time expires, the STimer gets armed immediately taking the specified time.
[in] | t | A pointer to the STimer object. |
[in] | tTime | The expiration time(Must be specified in seconds). |
Reload the STimer with the previous specified time.
[in] | t | A pointer to the STimer object. |
Retrieve the remaining time in epochs.
[in] | t | A pointer to the STimer object. |
Set the expiration time for a STimer. On success, the STimer gets armed immediately.
[in] | t | A pointer to the STimer object. |
[in] | tTime | The expiration time(Must be specified in seconds). |