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 15
P. O. Box 10 09 53, Subject to change without further notice.
D-93009 Regensburg
none
Callable in / at:
interrupts, init, main, save
Stack used:
8 bytes
Comment:
---
2.6 FT12
The following functions are used to send and receive FT12 frames over UART0 of the bim.
2.6.1 Function FT12Init
Prototype:
void FT12Init(USHORT TimeoutTime, BYTE len, BYTE* rcvBuffer,
BYTE* trmBuffer, BYTE baud, BYTE config)
Description
:
This function is used to initialize the driver for sending and receiving FT12 frames
over UART0. It must be called before any other function of FT12 is called.
Parameters:
USHORT TimeoutTime:
The time out time for the FT12 acknowledge
BYTE len:
The size of the transmit and receive buffer
BYTE* rcvBuffer:
A pointer to a receive buffer
BYTE* trmBuffer:
A pointer to a transmit buffer
BYTE baud:
The baud rate; the possible values can be looked up in the NEC78K0 / KE2
datasheet
BYTE config:
The configuration of the FT12 UART; the possible configurations can be
looked up in the NEC78K0 / KE2 datasheet
Return values
:
none
Callable in / at:
init
Stack used:
18 bytes
Comment:
---
2.6.2 Function FT12Send
Prototype:
BOOL FT12Send(BYTE* src, BYTE len, BYTE* result)