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 11
P. O. Box 10 09 53, Subject to change without further notice.
D-93009 Regensburg
2.4.1 Function ADCInit
Prototype:
void ADCInit(ADCSpeedModeType speed)
Description
:
Inits the AD converter and sets the speed specified by the parameter ‘speed’.
Parameters
:
ADCSpeedModeType speed:
The conversion speed of the AD converter
Return values
:
none
Callable in / at:
init, main
Stack used:
8 bytes
Comment:
---
2.4.2 Function ADCShutdown
Prototype:
void ADCShutdown(void)
Description
:
Disables the AD converter.
Parameters:
none
Return values
:
none
Callable in / at:
interrupts, init, main, save, unload
Stack used: 8 bytes
Comment:
After ADCShutdown a new call of ‘ADCInit’ is necessary before ‘ADCRead’ can be
called again.
2.4.3 Function ADCRead
Prototype:
USHORT ADCRead(BYTE port, BYTE ADCcount)
Description
:
Returns the accumulated AD converter value of the specified ‘port’; divide the return
value through ‘ADCcount’ to get the average value.
Parameters:
BYTE port:
The ad converter channel that should be converted
BYTE ADCcount:
The number of conversions that should be accumulated