
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
109
Revision 1.0, 2011-12-15
2.32
FlashSetLock()
2.32.1
Description
This function sets the Lockbyte 3 which protects the User Configuration sector. This function returns -1 and has
no effect if executed in DEBUG mode.
Attention: This function shows only effect if the Lockbyte 2 that protects the Code Sector is set.
Note: The application software has to ensure that FLASH is only programmed or erased when all required
environmental conditions are fulfilled. Special care has to be taken that ambient temperature
T
FL
, supply
voltage
V
batFL
and Endurance E
n
FL
are within specified range (see
).
This function returns -1 and has no effect if executed in DEBUG mode.
2.32.2
Actions
•
Set the Lockbyte 3 protecting the User Configuration sector
2.32.3
Prototype
signed char
FlashSetLock
(void)
2.32.4
Inputs
2.32.5
Outputs
Table 137
FlashSetLock: Input Parameters
Register / Address
Type
Name
Description
None
---
---
---
Table 138
FlashSetLock: Output values
Register/ Address
Type
Name
Description
R7
signed char
Statusbyte
0: success
-1: failed