![]() |
STM8L libraries for CR95HF 1.0
|
Modules | |
M24LRXX_Is_Functions | |
M24LRXX_Get_Functions | |
Functions | |
u8 | M24LRXX_Compute_Security_Status_byte (u8 Password_Number, u8 Read_Write_Protection_Password, u8 Read_Write_Protection_No_Password) |
The purpose of this function is to compute the security byte given the password number and the read write protection with and without password. |
u8 M24LRXX_Compute_Security_Status_byte | ( | u8 | Password_Number, |
u8 | Read_Write_Protection_Password, | ||
u8 | Read_Write_Protection_No_Password | ||
) |
The purpose of this function is to compute the security byte given the password number and the read write protection with and without password.
Password_Number,: | number of the password that will protect the sector (use the constants defined into the M24LRXX_command.h : M24LRXX_SECURITY_STATUS_PASSWORD_x where x designates the number. |
Read_Write_Protection_Password,: | read write protection when password is presented use the constants defined into the M24lRXX_command.h : either M24LRXX_SECURITY_STATUS_WITH_PASSWORD_READ_WRITE or M24LRXX_SECURITY_STATUS_WITH_PASSWORD_READ_ONLY |
Read_Write_Protection_No_Password | : read write protection without password. Use the constants defined into the M24lRXX_command.h, among : M24LRXX_SECURITY_STATUS_WITHOUT_PASSWORD_READ_ONLY M24LRXX_SECURITY_STATUS_WITHOUT_PASSWORD_READ_WRITE M24LRXX_SECURITY_STATUS_WITHOUT_PASSWORD_NO_READ_NO_WRITE |
security_byte | : the security byte computed to send within the lock sector password command |