SwTimer#
Modules#
Enumerations#
Defines return values from SwTimer methods.
Typedefs#
Defines return values from SwTimer methods.
Typedef needed to include pointer for struct SSwTimerLiaison in struct SSwTimer, without requiring include of definition SSwTimerLiaison.
Timer Liaison object.
Functions#
Configures the callback method called on timer timeout.
Configures Timer timeout and starts the timer.
Configures Timer timeout and starts the timer from an Interrupt Service Routine.
Restarts the timer.
Restarts the timer.
Stops an active timer.
Stops an active timer from an Interrupt Service Routine.
Returns if the timer is active.
Returns if timer has a timeout callback pending.
Returns if timer has a timeout callback pending from an Interrupt Service Routine.
Queries a timer for number of milliseconds remaining before time out Method may be called on inactive timers, but in that case ESWTIMER_STATUS_FAILED will be returned and pMsUntilTimeout will not be modified.
Returns the period of a freeRTOS timer.
Macros#
Space for holding FreeRTOS StaticEventGroup_t and EventGroupHandle_t.
Enumeration Documentation#
ESwTimerStatus#
ESwTimerStatus
Defines return values from SwTimer methods.
Enumerator | |
---|---|
ESWTIMER_STATUS_SUCCESS | ESWTIMER_STATUS_SUCCESS. |
ESWTIMER_STATUS_FAILED | ESWTIMER_STATUS_FAILED. |
48
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
Typedef Documentation#
ESwTimerStatus#
typedef enum ESwTimerStatus ESwTimerStatus
Defines return values from SwTimer methods.
52
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
SSwTimerLiaisonPtr#
typedef struct SSwTimerLiaison* SSwTimerLiaisonPtr
Typedef needed to include pointer for struct SSwTimerLiaison in struct SSwTimer, without requiring include of definition SSwTimerLiaison.
69
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
SSwTimer#
typedef struct SSwTimer SSwTimer
80
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
SSwTimerPrivate_t#
typedef struct SSwTimerPrivate_t SSwTimerPrivate_t
Timer Liaison object.
All content is private.
35
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimerPrivate.h
Function Documentation#
TimerSetCallback#
void TimerSetCallback (SSwTimer * pTimer, void(*)(SSwTimer *pTimer) pCallback)
Configures the callback method called on timer timeout.
[in] | pTimer | Pointer to the timer object |
[in] | pCallback | Callback method of type void Callback(SSwTimer* pTimer). Argument may be NULL, in which case no callback is performed. |
If called on a timer that has a pending callback, the callback will be executed on the new callback method.
90
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerStart#
ESwTimerStatus TimerStart (SSwTimer * pTimer, uint32_t iTimeout)
Configures Timer timeout and starts the timer.
[in] | pTimer | Pointer to the timer object |
[in] | iTimeout | Timeout value in ms. Zero is illegal. |
If method is called on a timer that is already started, the timer will restart from zero and count towards the new timeout.
103
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerStartFromISR#
ESwTimerStatus TimerStartFromISR (SSwTimer * pTimer, uint32_t iTimeout)
Configures Timer timeout and starts the timer from an Interrupt Service Routine.
[in] | pTimer | Pointer to the timer object |
[in] | iTimeout | Timeout value in ms. Zero is illegal. |
If method is called on a timer that is already started, the timer will restart from zero and count towards the new timeout.
116
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerRestart#
ESwTimerStatus TimerRestart (SSwTimer * pTimer)
Restarts the timer.
[in] | pTimer | Pointer to the timer object |
Starts an inactive timer. If called on a timer that is already started, the timer will restart from zero.
128
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerRestartFromISR#
ESwTimerStatus TimerRestartFromISR (SSwTimer * pTimer)
Restarts the timer.
[in] | pTimer | Pointer to the timer object |
Starts an inactive timer. If called on a timer that is already started, the timer will restart from zero.
140
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerStop#
ESwTimerStatus TimerStop (SSwTimer * pTimer)
Stops an active timer.
[in] | pTimer | Pointer to the timer object |
Method may be called on inactive timers. Any pending callbacks that has not been performed yet will be cleared.
152
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerStopFromISR#
ESwTimerStatus TimerStopFromISR (SSwTimer * pTimer)
Stops an active timer from an Interrupt Service Routine.
[in] | pTimer | Pointer to the timer object |
Method may be called on inactive timers. Any pending callbacks that has not been performed yet will be cleared.
164
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerIsActive#
bool TimerIsActive (SSwTimer * pTimer)
Returns if the timer is active.
[in] | pTimer | Pointer to the timer object |
Active is defined as the timer counting, or having a pending callback.
174
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerHasPendingCallback#
bool TimerHasPendingCallback (SSwTimer * pTimer)
Returns if timer has a timeout callback pending.
[in] | pTimer | Pointer to the timer object |
183
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerHasPendingCallbackFromISR#
bool TimerHasPendingCallbackFromISR (SSwTimer * pTimer)
Returns if timer has a timeout callback pending from an Interrupt Service Routine.
[in] | pTimer | Pointer to the timer object |
192
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h
TimerGetMsUntilTimeout#
ESwTimerStatus TimerGetMsUntilTimeout (SSwTimer * pTimer, uint32_t refTaskTickCount, uint32_t * pMsUntilTimeout)
Queries a timer for number of milliseconds remaining before time out Method may be called on inactive timers, but in that case ESWTIMER_STATUS_FAILED will be returned and pMsUntilTimeout will not be modified.
[in] | pTimer | Pointer to the timer object |
[in] | refTaskTickCount | The xTaskGetTickCount() value to use as a reference for the timeout. |
[out] | pMsUntilTimeout | Pointer to variable to receive remaining time until timeout |
206
of file /mnt/raid/workspaces/ws.Mh9rMZz8x/overlay/gsdk/protocol/z-wave/Components/SwTimer/SwTimer.h