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 17
P. O. Box 10 09 53, Subject to change without further notice.
D-93009 Regensburg
2.7.1 Function HSInit
Prototype:
void HSInit(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 frames with
handshake flow control over UART0.
Parameters
:
USHORT TimeoutTime:
The time in between a send operation must be completed
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 must be looked up in the NEC78K0 / KE2
datasheet
BYTE config:
The configuration of the FT12 uart; the possible configurations must be looked
up in the NEC78K0 / KE2 datasheet
Return values
:
none
Callable in / at:
init
Stack used: 14 bytes
Comment:
It is not recommended using this function for new implementations.
2.7.2 Function HSSetFrame
Prototype:
BOOL HSSetFrame(BYTE* src, BYTE len, BYTE* result)
Description
:
Copies ‘len’ bytes from ‘src’ to the send buffer if it is empty. After sending the result is
stored in ‘result’.
Parameters:
BYTE* src:
A pointer to data that should be transmitted
BYTE len:
The number of bytes that should be transmitted
BYTE* result:
A pointer to a byte where the result of the send operation is stored
Return values
: