User Manual
GAMMA instabus
Release: December 2011
API-Reference for Bus Interface Modules M130, M131, M132, M135
KNX-Processors 184/01, 184/11, 184/21
Siemens AG pages 28 Technical Manual
Infrastructure and Cities Sector,
Building Technologies
Control Products and Systems © Siemens AG 2011 page 9
P. O. Box 10 09 53, Subject to change without further notice.
D-93009 Regensburg
ULONG ticks:
The number of ticks the timer should run before it will be expired
Return values
:
none
Callable in / at:
init, main
Stack used:
18 bytes
Comment:
---
2.3.4 Function TmAddStart
Prototype:
void TmAddStart(TIMER* pTimer, ULONG ticks)
Description
:
This function restarts a timer for the specified ‘ticks’ measured from the last
expiration of the timer. Use this function if you want to get timer intervals that do not
drift away from the real time like it would be if you use ‘TmStart’.
Parameters
:
TIMER* pTimer:
A pointer to a timer that should be started
ULONG ticks:
The number of ticks the timer should run before it will be expired
Return values
:
none
Callable in / at:
main
Stack used: 18 bytes
Comment:
Before a call of ‘TmAddStart’ there must be at least one call of ‘TmStart’
2.3.5 Function TmIsExpired
Prototype:
BOOL TmIsExpired(TIMER* pTimer)
Description
:
Tests if the timer specified by the pointer ‘pTimer’ is expired or not. The timer remains
expired until the next call of ‘TmStart’, ‘TmAddStart’ or ‘TmStop’.
Parameters:
TIMER* pTimer:
A pointer to a timer that should be tested whether it is expired or not
Return values
:
true: the timer is expired
false: the timer is not expired
Callable in / at:
interrupts, main, save
Stack used:
8 bytes