STM8L libraries for CR95HF 1.0
Modules | Functions
M24LRXX_Support_Functions
M24LRXX_Tags

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.

Function Documentation

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.

Parameters:
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
Return values:
security_byte: the security byte computed to send within the lock sector password command
 All Data Structures Files Functions Variables Defines