mirror of
https://git.intern.spaceteamaachen.de/ALPAKA/driver-w25qxxx.git
synced 2025-09-28 16:37:33 +00:00
Added block lock and unlock implementation
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user