STM8L libraries for CR95HF 1.0
Functions
M24LRXX_Get_Functions
M24LRXX_Support_Functions

Functions

u8 M24LRXX_Get_Block_Security_Password_number (u8 Byte_Status)
 This function returns if the block is protected by password and the number of the pasword protecting the block.
u8 M24LRXX_Get_Block_Security_Read_Write_Protection_with_Password (u8 Byte_Status)
 This function returns the read write protection of the block when password is presented.
u8 M24LRXX_Get_Block_Security_Read_Write_Protection_without_Password (u8 Byte_Status)
 This function returns the read write protection of the block whithout password.

Function Documentation

u8 M24LRXX_Get_Block_Security_Password_number ( u8  Byte_Status)

This function returns if the block is protected by password and the number of the pasword protecting the block.

Parameters:
Byte_Status,:the byte describing the security block status (retrieved either with a read command with option flag set or with a get multiple block security status).
Return values:
M24LRXX_SECURITY_STATUS_MASK_NO_PASSWORD: no password for this block
M24LRXX_SECURITY_STATUS_MASK_PASSWORD_1: password 1 protects this block
M24LRXX_SECURITY_STATUS_MASK_PASSWORD_2: password 2 protects this block
M24LRXX_SECURITY_STATUS_MASK_PASSWORD_3: password 3 protects this block
u8 M24LRXX_Get_Block_Security_Read_Write_Protection_with_Password ( u8  Byte_Status)

This function returns the read write protection of the block when password is presented.

Parameters:
Byte_Status,:the byte describing the security block status (retrieved either with a read command with option flag set or with a get multiple block security status).
Return values:
M24LRXX_SECURITY_STATUS_WITH_PASSWORD_READ_ONLY: the sector is locked
M24LRXX_SECURITY_STATUS_WITH_PASSWORD_READ_WRITE: the sectore can written and read
u8 M24LRXX_Get_Block_Security_Read_Write_Protection_without_Password ( u8  Byte_Status)

This function returns the read write protection of the block whithout password.

Parameters:
Byte_Status: the byte describing the security block status (retrieved either with a read command with option flag set or with a get multiple block security status).
Return values:
M24LRXX_SECURITY_STATUS_WITHOUT_PASSWORD_READ_ONLY: only read is allowed on this block
M24LRXX_SECURITY_STATUS_WITHOUT_PASSWORD_READ_WRITE: read and write are allowed
M24LRXX_SECURITY_STATUS_WITHOUT_PASSWORD_NO_READ_NO_WRITE: no operation on thsi block
 All Data Structures Files Functions Variables Defines