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 20 © Siemens AG 2011 Control Products and Systems
Subject to change without further notice. P. O. Box 10 09 53,
D-93009 Regensburg
true: the segment was successful erased
false: the erase operation could not be done; this is normally the case if ‘dst’ is not
o.k.
Callable in / at:
main, save
Stack used:
8 bytes
Comment:
After a call of this function the system performs a task switch and the application
program is called again when the flash erase operation has been completed.
2.9.2 Function FlashWrite
Prototype:
BOOL FlashWrite(ULONG dst, void* src, BYTE count)
Description
:
This function writes ‘count’ bytes from ‘src’ to ‘dst’ in flash. The ‘dst’ flash memory
must be blank flash space.
Parameters:
ULONG dst:
The destination address as a four byte value where the data should be written;
the flash space where ‘dst’ points to must be blank flash and ‘dst’ must be
aligned to a four byte address.
void* src:
A pointer to data that should be written to flash
BYTE count:
The number of bytes that should be written
Return values
:
true: the data has been written to flash
false: the data has not been written to flash; this could be the case if the address is
not o.k.
Callable in / at:
main, save
Stack used: 8 bytes
Comment:
The maximum value for ‘count’ is 124. After a call of this function the system performs
a task switch and the application program is called again when the flash write
operation has been completed.
2.9.3 Function FlashIsBlockBlank
Prototype:
BOOL FlashIsBlockBlank(BYTE* pVal, USHORT count)
Description
:
Tests if a block of bytes in flash memory is blank.
Parameters
:
BYTE* pVal: