The functions in this group are used to erase selected portions of a flash device.
◆ alt_qspi_erase_chip()
This function erases the entire flash device.
- Return values
-
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
◆ alt_qspi_erase_sector()
This function erases the designated flash device sector.
This function erases the flash device sector containing the designated flash address. Any address within the sector is valid.
- Parameters
-
addr | A flash address contained within the the sector to be erased. |
- Return values
-
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
◆ alt_qspi_erase_subsector()
This function erases the designated flash device subsector.
This function erases the flash device subsector containing the designated flash address. Any address within the subsector is valid.
- Parameters
-
addr | A flash address contained within the the subsector to be erased. |
- Return values
-
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |