Added block lock and unlock implementation

This commit is contained in:
dario
2024-02-27 11:17:21 +01:00
parent b28e15daff
commit 28f1f1ecce
2 changed files with 70 additions and 1 deletions

View File

@@ -58,12 +58,32 @@ namespace sta
*/
uint8_t setAddressMode(AddressMode addrMode);
/**
* @brief Get the Address Mode object
*
* @return AddressMode
*/
AddressMode getAddressMode();
/**
* @brief Get the Chip I D object
*
* @return uint8_t
*/
uint8_t getChipID();
/**
* @brief Get the Manufacturer I D object
*
* @return uint8_t
*/
uint8_t getManufacturerID();
/**
* @brief Get the Unique I D object
*
* @return uint64_t
*/
uint64_t getUniqueID();
// TODO: SFDP register?
@@ -210,8 +230,10 @@ namespace sta
// Read security registers
// Indiv Block / Sector lock
uint8_t lockBlock(uint32_t address);
// Indiv Block / Sector unlock
uint8_t unlockBlock(uint32_t address);
// Indiv Block / Sector lock read