RTEMS
5.0.0
|
Modules | |
SRAM Partition | |
Functions | |
ALT_STATUS_CODE | alt_qspi_indirect_read_start (const uint32_t flash_addr, const size_t num_bytes) |
ALT_STATUS_CODE | alt_qspi_indirect_read_finish (void) |
ALT_STATUS_CODE | alt_qspi_indirect_read_cancel (void) |
uint32_t | alt_qspi_indirect_read_fill_level (void) |
uint32_t | alt_qspi_indirect_read_watermark_get (void) |
ALT_STATUS_CODE | alt_qspi_indirect_read_watermark_set (const uint32_t watermark) |
bool | alt_qspi_indirect_read_is_complete (void) |
ALT_STATUS_CODE | alt_qspi_indirect_write_start (const uint32_t flash_addr, const size_t num_bytes) |
ALT_STATUS_CODE | alt_qspi_indirect_write_finish (void) |
ALT_STATUS_CODE | alt_qspi_indirect_write_cancel (void) |
uint32_t | alt_qspi_indirect_write_fill_level (void) |
uint32_t | alt_qspi_indirect_write_watermark_get (void) |
ALT_STATUS_CODE | alt_qspi_indirect_write_watermark_set (const uint32_t watermark) |
bool | alt_qspi_indirect_write_is_complete (void) |
In indirect access mode, flash data is temporarily buffered in the QSPI controller's SRAM. Software controls and triggers indirect accesses through the APB register slave interface. The controller transfers data through the AHB data slave interface.
An indirect read operation reads data from the flash memory, places the data into the SRAM, and transfers the data to an external master through the AHB data slave interface.
An indirect write operation programs data from the SRAM to the flash memory.
ALT_STATUS_CODE alt_qspi_indirect_read_cancel | ( | void | ) |
Cancel all indirect read transfers in progress.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
uint32_t alt_qspi_indirect_read_fill_level | ( | void | ) |
Get the current indirect read SRAM fill level value.
Returns the SRAM fill level for the indirect read partition in units of SRAM words (4 bytes).
ALT_STATUS_CODE alt_qspi_indirect_read_finish | ( | void | ) |
Finish the indirect read operation that was completed or canceled. This function should be called before another indirect read is started.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
bool alt_qspi_indirect_read_is_complete | ( | void | ) |
Returns true when an indirect read has completed otherwise false.
ALT_STATUS_CODE alt_qspi_indirect_read_start | ( | const uint32_t | flash_addr, |
const size_t | num_bytes | ||
) |
Starts an indirect read transfer.
Initiates an indirect read transfer of the requested number of bytes from the designated flash address.
After calling this function, flash data may be read from the QSPI SRAM buffer as it becomes available via one of the following methods:
The following is a list of restrictions:
flash_addr | The flash source address to read data from. |
num_bytes | The number of bytes to read from the flash source address. |
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
uint32_t alt_qspi_indirect_read_watermark_get | ( | void | ) |
Get the current indirect read watermark value.
The watermark value (in bytes) represents the minimum fill level of the SRAM before a DMA peripheral access is permitted. When the SRAM fill level passes the watermark, an interrupt source is also generated. This can be disabled by writing a value of all zeroes.
ALT_STATUS_CODE alt_qspi_indirect_read_watermark_set | ( | const uint32_t | watermark | ) |
Set the indirect read watermark value.
The watermark value (in bytes) represents the minimum fill level of the SRAM before a DMA peripheral access is permitted. When the SRAM fill level passes the watermark, an interrupt source is also generated. This can be disabled by writing a value of all zeroes. The watermark can only be set when no indirect read is in progress.
watermark | The watermark value (in bytes). |
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_indirect_write_cancel | ( | void | ) |
Cancel all indirect write transfers in progress.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
uint32_t alt_qspi_indirect_write_fill_level | ( | void | ) |
Get the current indirect write SRAM fill level value.
Returns the SRAM fill level for the indirect write partition in units of SRAM words (4 bytes).
ALT_STATUS_CODE alt_qspi_indirect_write_finish | ( | void | ) |
Finish the indirect write operation that was completed or canceled. This function should be called before another indirect write is started.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
bool alt_qspi_indirect_write_is_complete | ( | void | ) |
Returns true when an indirect write has completed otherwise false.
ALT_STATUS_CODE alt_qspi_indirect_write_start | ( | const uint32_t | flash_addr, |
const size_t | num_bytes | ||
) |
Starts an indirect write transfer.
Initiates an indirect write transfer of the requested number of bytes to the designated flash address.
After calling this function, flash data may be written to the QSPI SRAM buffer there is space via one of the following methods:
The following is a list of restrictions:
flash_addr | The flash destination address to write data to. |
num_bytes | The number of bytes to write to the flash. |
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
uint32_t alt_qspi_indirect_write_watermark_get | ( | void | ) |
Get the current indirect write watermark value.
The watermark value (in bytes) represents the maximum fill level of the SRAM before a DMA peripheral access is permitted. When the SRAM fill level falls below the watermark, an interrupt is also generated. This can be disabled by writing a value of all ones.
ALT_STATUS_CODE alt_qspi_indirect_write_watermark_set | ( | const uint32_t | watermark | ) |
Set the indirect write watermark value.
The watermark value (in bytes) represents the maximum fill level of the SRAM before a DMA peripheral access is permitted. When the SRAM fill level falls below the watermark, an interrupt is also generated. This can be disabled by writing a value of all ones. The watermark can only be set when no indirect write is in progress.
watermark | The watermark value (in bytes). |
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |