![]() |
NHS31xx SW API
|
The Flash driver provides APIs to select the power mode that the flash memory operates in, and the number of wait states to apply to flash operations.
Data Structures | |
struct | NSS_FLASH_T |
Functions | |
void | Chip_Flash_SetHighPowerMode (bool highPower) |
bool | Chip_Flash_GetHighPowerMode (void) |
void | Chip_Flash_SetNumWaitStates (int waitStates) |
int | Chip_Flash_GetNumWaitStates (void) |
struct NSS_FLASH_T |
NSS Flash register block structure
Data Fields | ||
---|---|---|
__IO uint32_t | FCTR |
Flash control register |
__I uint32_t | FSTAT |
Flash status register |
__IO uint32_t | FPTR |
Flash program-time register |
__I uint32_t | RESERVED1 | |
__IO uint32_t | FBWST |
Flash wait state register |
__I uint32_t | RESERVED2[2] | |
__IO uint32_t | FCRA |
Flash program clock divider |
__IO uint32_t | FMSSTART |
Flash checksum start address register |
__IO uint32_t | FMSSTOP |
Flash checksum stop address register |
__I uint32_t | FMS16 |
Flash parity signature register |
__I uint32_t | FMSW0 |
Flash data signature register |
__I uint32_t | RESERVED3[8] | |
__IO uint32_t | ECCRSTERRCNT |
Invalid flag and error corrected counter reset |
__I uint32_t | ECCERRCNT |
ECC status information |
__I uint32_t | RESERVED4[990] | |
__I uint32_t | MODULE_CONFIG |
Controller configuration options |
__I uint32_t | RESERVED5 | |
__O uint32_t | INT_CLR_ENABLE |
Clear interrupt enable bits |
__O uint32_t | INT_SET_ENABLE |
Set interrupt enable bits |
__I uint32_t | INT_STATUS |
Interrupt status bits |
__I uint32_t | INT_ENABLE |
Interrupt enable bits |
__O uint32_t | INT_CLR_STATUS |
Clear interrupt status bits |
__O uint32_t | INT_SET_STATUS |
Set interrupt status bits |
__I uint32_t | RESERVED6[3] | |
__I uint32_t | MODULE_ID |
Controller memory module identification |
void Chip_Flash_SetHighPowerMode | ( | bool | highPower | ) |
Sets the power mode of the flash memory.
highPower | : True for high power mode, false for low power mode |
highPower
equals false
, the caller must ensure that either4000000
or less.bool Chip_Flash_GetHighPowerMode | ( | void | ) |
Gets the power mode of the flash memory.
void Chip_Flash_SetNumWaitStates | ( | int | waitStates | ) |
Sets the number of wait states for flash operations.
waitStates | : Number of wait states to be added to flash operations. |
waitStates
equals 0
, the caller must ensure that eithertrue
, or4000000
or less.int Chip_Flash_GetNumWaitStates | ( | void | ) |
Gets the number of wait states applied to flasAh operations.