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
Technical Manual pages 28 Siemens AG
Infrastructure and Cities Sector,
Building Technologies
page 8 © Siemens AG 2011 Control Products and Systems
Subject to change without further notice. P. O. Box 10 09 53,
D-93009 Regensburg
2.3.1 Function GetSystemTime
Prototype:
ULONG GetSystemTime(void)
Description
:
This function returns a 4 byte value that contains the ticks that are expired since the
last start up. One tick is equal to
6.416
µs.
Parameters:
none
Return values
:
The 4 byte value that contains the ticks
Callable in / at:
init, main
Stack used: 12 bytes
Comment:
---
2.3.2 Function TmInit
Prototype:
void TmInit (BYTE NumOfTimers)
Description
:
This function initializes the timer table specified in the application info block. It sets
the number of timers and sets each timer to expired and stopped.
Parameters:
BYTE NumOfTimers:
The number of timers that are used in the application program
Return values
:
none
Callable in / at:
init
Stack used: 8 bytes
Comment:
This function must be called before any other timer function is called.
2.3.3 Function TmStart
Prototype:
void TmStart(TIMER* pTimer, ULONG ticks)
Description
:
Starts a timer specified by the pointer ‘pTimer’. The timer will be expired after ‘ticks’
measured from the point where ‘TmStart’ was called. Use ‘TmIsExpired’ to test
whether a timer is expired or not.
Parameters
:
TIMER* pTimer:
A pointer to a timer that should be started