Configuration values for the various supported qspi devices.
More...
Configuration values for the various supported qspi devices.
◆ eflash_automode_erase_chip()
| __RETAINED_CODE bool eflash_automode_erase_chip |
( |
void |
| ) |
|
◆ eflash_automode_erase_sector()
| __ALWAYS_RETAINED_CODE bool eflash_automode_erase_sector |
( |
uint32_t |
addr | ) |
|
◆ eflash_automode_get_physical_addr()
| const __RETAINED_CODE void* eflash_automode_get_physical_addr |
( |
uint32_t |
virtual_addr | ) |
|
Get the physical address of eFlash memory for the given virtual address.
- Parameters
-
| [in] | virtual_addr | Virtual address |
- Warning
- Use eflash_automode_is_valid_virtual_addr() to check whether the given virtual address is within the acceptable eFlash virtual address space area. If an invalid virtual address is passed to this function, the returned physical address will be invalid as well. The function doesn't check against invalid input.
- Returns
- Physical address in CPU address space where data is located
◆ eflash_automode_is_valid_virtual_addr()
| __RETAINED_CODE bool eflash_automode_is_valid_virtual_addr |
( |
uint32_t |
addr | ) |
|
Verify if given virtual address points to EFLASH memory.
- Parameters
-
- Returns
- true if virtual address points to EFLASH memory range, false otherwise
◆ eflash_automode_is_valid_virtual_address_range()
| __RETAINED_CODE bool eflash_automode_is_valid_virtual_address_range |
( |
uint32_t |
addr, |
|
|
uint32_t |
len |
|
) |
| |
Check if the virtual address range from addr to addr + len is valid.
- Warning
- This function requires virtual destination address. Do not provide physical or zero-based address.
- Parameters
-
| [in] | addr | Virtual start address to be checked. |
| [in] | len | Length of bytes to access relative to the virtual start address, which determines the virtual end address to be checked. |
- Returns
- True, if the input address virtual range is valid, otherwise false.
◆ eflash_automode_read()
| uint32_t eflash_automode_read |
( |
uint32_t |
addr, |
|
|
uint8_t * |
buf, |
|
|
uint32_t |
len |
|
) |
| |
◆ eflash_automode_sleep()
| __ALWAYS_RETAINED_CODE void eflash_automode_sleep |
( |
void |
| ) |
|
Sef EFLASH to sleep mode.
This function put EFLASH into sleep mode.
◆ eflash_automode_wakeup()
| __ALWAYS_RETAINED_CODE void eflash_automode_wakeup |
( |
void |
| ) |
|
◆ eflash_automode_write_page()
| __ALWAYS_RETAINED_CODE uint32_t eflash_automode_write_page |
( |
uint32_t |
addr, |
|
|
const uint8_t * |
buf, |
|
|
uint32_t |
len |
|
) |
| |
Write data to EFLASH memory page.
This function writes data do EFLASH memory. Note that EFLASH hardware supports writes of 32 bit words only, and if buffer or address is not word-aligned, flash content will be read, overwritten and written back to flash. Therefore word-aligned memory area should be erased before. Note that page boundary cannot be crossed and, as a result up to page size may be written.
- Parameters
-
| [in] | addr | address pointing to EFLASH memory |
| [in] | buf | buffer to write data into |
| [in] | len | number of bytes to write |
- Returns
- number of written bytes
- See also
- eflash_automode_wakeup() eflash_automode_sleep()