RTEMS
5.1
|
Typedefs | |
typedef enum ALT_QSPI_INT_STATUS_e | ALT_QSPI_INT_STATUS_t |
Enumerations | |
enum | ALT_QSPI_INT_STATUS_e { ALT_QSPI_INT_STATUS_MODE_FAIL = (0x1 << 0), ALT_QSPI_INT_STATUS_UFL = (0x1 << 1), ALT_QSPI_INT_STATUS_IDAC_OP_COMPLETE = (0x1 << 2), ALT_QSPI_INT_STATUS_IDAC_OP_REJECT = (0x1 << 3), ALT_QSPI_INT_STATUS_WR_PROT_VIOL = (0x1 << 4), ALT_QSPI_INT_STATUS_ILL_AHB_ACCESS = (0x1 << 5), ALT_QSPI_INT_STATUS_IDAC_WTRMK_TRIG = (0x1 << 6), ALT_QSPI_INT_STATUS_RX_OVF = (0x1 << 7), ALT_QSPI_INT_STATUS_TX_FIFO_NOT_FULL = (0x1 << 8), ALT_QSPI_INT_STATUS_TX_FIFO_FULL = (0x1 << 9), ALT_QSPI_INT_STATUS_RX_FIFO_NOT_EMPTY = (0x1 << 10), ALT_QSPI_INT_STATUS_RX_FIFO_FULL = (0x1 << 11), ALT_QSPI_INT_STATUS_IDAC_RD_FULL = (0x1 << 12) } |
Functions | |
ALT_STATUS_CODE | alt_qspi_init (void) |
ALT_STATUS_CODE | alt_qspi_uninit (void) |
ALT_STATUS_CODE | alt_qspi_disable (void) |
ALT_STATUS_CODE | alt_qspi_enable (void) |
uint32_t | alt_qspi_int_status_get (void) |
ALT_STATUS_CODE | alt_qspi_int_clear (const uint32_t mask) |
ALT_STATUS_CODE | alt_qspi_int_disable (const uint32_t mask) |
ALT_STATUS_CODE | alt_qspi_int_enable (const uint32_t mask) |
bool | alt_qspi_is_idle (void) |
The declarations and functions in this group provide general purpose control and status functions for the QSPI Flash Controller.
typedef enum ALT_QSPI_INT_STATUS_e ALT_QSPI_INT_STATUS_t |
This type definition enumerates the interrupt status conditions for the QSPI controller.
The enumerations serve as masks for the QSPI controller events that can be set when the designated conditions occur and the corresponding event is enabled. When any of these event source conditions are true, the ALT_INT_INTERRUPT_QSPI_IRQ interrupt output is asserted high.
Interrupt sources are cleared when software calls alt_qspi_int_clear(). The interrupt sources are individually maskable using alt_qspi_int_disable() and alt_qspi_int_enable().
This type definition enumerates the interrupt status conditions for the QSPI controller.
The enumerations serve as masks for the QSPI controller events that can be set when the designated conditions occur and the corresponding event is enabled. When any of these event source conditions are true, the ALT_INT_INTERRUPT_QSPI_IRQ interrupt output is asserted high.
Interrupt sources are cleared when software calls alt_qspi_int_clear(). The interrupt sources are individually maskable using alt_qspi_int_disable() and alt_qspi_int_enable().
ALT_STATUS_CODE alt_qspi_disable | ( | void | ) |
Disable the QSPI Controller.
Disable the QSPI once the current transfer of the data word (FF_W) is complete. All output enables are inactive and all pins are set to input mode.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_enable | ( | void | ) |
Enable the QSPI Controller.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_init | ( | void | ) |
Initialize the QSPI flash controller for use.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_int_clear | ( | const uint32_t | mask | ) |
Clears the specified QSPI controller interrupt status conditions identified in the mask.
This function clears one or more of the status conditions as contributors to the ALT_INT_INTERRUPT_QSPI_IRQ interrupt signal state.
mask | Specifies the QSPI interrupt status conditions to clear. mask is a mask of logically OR'ed ALT_QSPI_INT_STATUS_t values that designate the status conditions to clear. |
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_int_disable | ( | const uint32_t | mask | ) |
Disable the specified QSPI controller interrupt status conditions identified in the mask.
This function disables one or more of the status conditions as contributors to the ALT_INT_INTERRUPT_QSPI_IRQ interrupt signal state.
This API requires that the QSPI controller be idle, as determined by alt_qspi_is_idle().
NOTE: A cleared bit for any status condition in the mask value does not have the effect of enabling it as a contributor to the ALT_INT_INTERRUPT_QSPI_IRQ interrupt signal state. The function alt_qspi_int_enable() is used to enable status source conditions.
mask | Specifies the status conditions to disable as interrupt source contributors. mask is a mask of logically OR'ed ALT_QSPI_INT_STATUS_t values that designate the status conditions to disable. |
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
ALT_STATUS_CODE alt_qspi_int_enable | ( | const uint32_t | mask | ) |
Enable the specified QSPI controller interrupt status conditions identified in the mask.
This function enables one or more of the status conditions as contributors to the ALT_INT_INTERRUPT_QSPI_IRQ interrupt signal state.
This API requires that the QSPI controller be idle, as determined by alt_qspi_is_idle().
NOTE: A cleared bit for any status condition in the mask value does not have the effect of disabling it as a contributor to the ALT_INT_INTERRUPT_QSPI_IRQ interrupt signal state. The function alt_qspi_int_disable() is used to disable status source conditions.
mask | Specifies the status conditions to enable as interrupt source contributors. mask is a mask of logically OR'ed ALT_QSPI_INT_STATUS_t values that designate the status conditions to enable. |
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |
uint32_t alt_qspi_int_status_get | ( | void | ) |
Returns the QSPI controller interrupt status register value.
This function returns the current value of the QSPI controller interrupt status register value which reflects the current QSPI controller status conditions.
bool alt_qspi_is_idle | ( | void | ) |
Returns true the serial interface and QSPI pipeline is IDLE.
ALT_STATUS_CODE alt_qspi_uninit | ( | void | ) |
Uninitialize the QSPI flash controller.
Uninitialize the QSPI flash controller by cancelling any indirect transfers in progress and putting the QSPI controller into reset.
ALT_E_SUCCESS | Indicates successful completion. |
ALT_E_ERROR | Indicates an error occurred. |