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 18 © Siemens AG 2011 Control Products and Systems
Subject to change without further notice. P. O. Box 10 09 53,
D-93009 Regensburg
true: the data was copied to send buffer
false: the send buffer was not free, so no data has been copied
Callable in / at:
main
Stack used:
8 bytes
Comment:
It is not recommended using this function for new implementations.
2.7.3 Function HSGetFrame
Prototype:
BOOL HSGetFrame(BYTE* dst, BYTE* len)
Description
:
Tests if there was a frame received over FT12. If this is the case the received data is
copied to ‘dst’ and the length is written to ‘len’.
Parameters
:
BYTE* dst:
A pointer to a buffer where the received bytes should be copied
BYTE* len:
A pointer to a byte where the number of copied bytes will be written
Return values
:
true: there was a frame received and the data has been copied to ‘dst’
false: no data was received
Callable in / at:
main
Stack used: 8 bytes
Comment:
It is not recommended using this function for new implementations.
2.8 SPI
2.8.1 Function SPIInit
Prototype:
void SPIInit(enum SPISpeed speed, BYTE CKPDAP, BOOL MSBFirst)
Description
:
This function is used to initialize the driver for transmitting data over SPI.
Parameters:
enum SPISpeed speed:
The speed of the SPI communication
BYTE CKPDAP:
value: 0x00: clock is idle high, data is valid if clock is high
value: 0x01: clock is idle high, data is valid if clock is low
value: 0x02: clock is idle low, data is valid if clock is low
value: 0x03: clock is idle low, data is valid if clock is high
BOOL MSBFirst:
Specifies whether the data bytes are transmitted with msb first or lsb first