Functions
QSPI driver functions
Peripheral Driver » LL Driver » Defines » Functions

## Functions
__STATIC_FORCEINLINE void | ll_xqspi_qspi_transmit_data8 (xqspi_regs_t *XQSPIx, uint8_t tx_data)
| Write 8-bit in the data register. More...
__STATIC_FORCEINLINE void | ll_xqspi_qspi_transmit_data16 (xqspi_regs_t *XQSPIx, uint16_t tx_data)
| Write 16-bit in the data register. More...
__STATIC_FORCEINLINE void | ll_xqspi_qspi_transmit_data32 (xqspi_regs_t *XQSPIx, uint32_t tx_data)
| Write 32-bit in the data register. More...
__STATIC_FORCEINLINE uint8_t | ll_xqspi_qspi_receive_data8 (xqspi_regs_t *XQSPIx)
| Read 8 bits in the data register. More...
__STATIC_FORCEINLINE uint16_t | ll_xqspi_qspi_receive_data16 (xqspi_regs_t *XQSPIx)
| Read 16 bits in the data register. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_qspi_receive_data32 (xqspi_regs_t *XQSPIx)
| Read 32 bits in the data register. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_tft (xqspi_regs_t *XQSPIx, uint32_t threshold)
| Set TX FIFO threshold level. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_tft (xqspi_regs_t *XQSPIx)
| Get TX FIFO threshold level. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_rft (xqspi_regs_t *XQSPIx, uint32_t threshold)
| Set RX FIFO threshold level. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_rft (xqspi_regs_t *XQSPIx)
| Get RX FIFO threshold level. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_qspi_dummy (xqspi_regs_t *XQSPIx)
| Enable dummy cycles. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_qspi_dummy (xqspi_regs_t *XQSPIx)
| Disable dummy cycles. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_qspi_dummy (xqspi_regs_t *XQSPIx)
| Check if dummy cycles is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_qspi_dma (xqspi_regs_t *XQSPIx)
| Enable DMA mode. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_qspi_dma (xqspi_regs_t *XQSPIx)
| Disable DMA mode. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_qspi_dma (xqspi_regs_t *XQSPIx)
| Check if DMA mode is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_cpol (xqspi_regs_t *XQSPIx, uint32_t cpol)
| Set clock polarity. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_cpol (xqspi_regs_t *XQSPIx)
| Get clock polarity. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_cpha (xqspi_regs_t *XQSPIx, uint32_t cpha)
| Set clock phase. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_cpha (xqspi_regs_t *XQSPIx)
| Get clock phase. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_data_order (xqspi_regs_t *XQSPIx, uint32_t order)
| Set serial data order. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_data_order (xqspi_regs_t *XQSPIx)
| Get serial data order. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_qspi_contxfer (xqspi_regs_t *XQSPIx)
| Enable continuous transfer mode. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_qspi_contxfer (xqspi_regs_t *XQSPIx)
| Disable continuous transfer mode. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_qspi_contxfer (xqspi_regs_t *XQSPIx)
| Check if continuous transfer mode is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_qspi_contxfer_extend (xqspi_regs_t *XQSPIx)
| Enable continuous transfer extend mode. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_qspi_contxfer_extend (xqspi_regs_t *XQSPIx)
| Disable continuous transfer extend mode. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_qspi_contxfer_extend (xqspi_regs_t *XQSPIx)
| Check if continuous transfer extend mode is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_datasize (xqspi_regs_t *XQSPIx, uint32_t szie)
| Set data size. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_datasize (xqspi_regs_t *XQSPIx)
| Get data size. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_inhibt_rx (xqspi_regs_t *XQSPIx)
| Enable inhibt data input to RX FIFO. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_inhibt_rx (xqspi_regs_t *XQSPIx)
| Disable inhibt data input to RX FIFO. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_inhibt_rx (xqspi_regs_t *XQSPIx)
| Check if inhibt data input to RX FIFO is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_inhibt_tx (xqspi_regs_t *XQSPIx)
| Enable inhibt data output to TX FIFO. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_inhibt_tx (xqspi_regs_t *XQSPIx)
| Disable inhibt data output to TX FIFO. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_inhibt_tx (xqspi_regs_t *XQSPIx)
| Check if inhibt data input to TX FIFO is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_frf (xqspi_regs_t *XQSPIx, uint32_t format)
| Set frame format. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_frf (xqspi_regs_t *XQSPIx)
| Get frame format. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_status (xqspi_regs_t *XQSPIx)
| Get QSPI status. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_active_qspi_flag (xqspi_regs_t *XQSPIx, uint32_t flag)
| Check active flag. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_qspi_ssout (xqspi_regs_t *XQSPIx, uint32_t ssout)
| Enable slave select output. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_qspi_ssout (xqspi_regs_t *XQSPIx, uint32_t ssout)
| Disable slave select output. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_sspol (xqspi_regs_t *XQSPIx, uint32_t sspol)
| Set slave select output polarity. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_sspol (xqspi_regs_t *XQSPIx)
| Get slave select output polarity. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_tx_fifo_level (xqspi_regs_t *XQSPIx)
| Get FIFO Transmission Level. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_rx_fifo_level (xqspi_regs_t *XQSPIx)
| Get FIFO reception Level. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_qspi_it (xqspi_regs_t *XQSPIx, uint32_t mask)
| Enable interrupt. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_qspi_it (xqspi_regs_t *XQSPIx, uint32_t mask)
| Disable interrupt. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_qspi_it (xqspi_regs_t *XQSPIx, uint32_t mask)
| Check if interrupt is enabled. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_it_flag (xqspi_regs_t *XQSPIx)
| Get XQSPI interrupt flags. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_qspi_it_flag (xqspi_regs_t *XQSPIx, uint32_t flag)
| Check interrupt flag. More...
__STATIC_FORCEINLINE void | ll_xqspi_clear_qspi_flag (xqspi_regs_t *XQSPIx, uint32_t flag)
| Clear interrupt flag. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_wait (xqspi_regs_t *XQSPIx, uint32_t wait)
| Set master inter-transfer delay. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_wait (xqspi_regs_t *XQSPIx)
| Get master inter-transfer delay. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_qspi (xqspi_regs_t *XQSPIx)
| Enable QSPI. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_qspi (xqspi_regs_t *XQSPIx)
| Disable QSPI. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enabled_qspi (xqspi_regs_t *XQSPIx)
| Check if QSPI is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_flash_write (xqspi_regs_t *XQSPIx, uint32_t bits)
| Set QSPI Flash write bits. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_flash_write (xqspi_regs_t *XQSPIx)
| Get QSPI Flash write bits. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_cs_idle_valid (xqspi_regs_t *XQSPIx)
| CS keeps valid while not reading. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_cs_idle_invalid (xqspi_regs_t *XQSPIx)
| CS keeps invalid while not reading. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_1st_prefecth (xqspi_regs_t *XQSPIx)
| enable 1st prefecth function More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_1st_prefecth (xqspi_regs_t *XQSPIx)
| disable 1st prefecth function More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_key_pulse (xqspi_regs_t *XQSPIx)
| enable key_pulse to interrupt rd_data state More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_key_pulse (xqspi_regs_t *XQSPIx)
| disable key_pulse to interrupt rd_data state More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_exflash_power (void)
| Enable exflash power. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_exflash_power (void)
| Disable exflash power. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enable_exflash_power (void)
| Check if exflash power is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_set_qspi_speed (uint32_t speed)
| Set XQSPI serial clock. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_get_qspi_speed (void)
| Get XQSPI serial clock. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_cache_retention (void)
| Enable cache data retention. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_cache_retention (void)
| Disable cache data retention. More...
__STATIC_FORCEINLINE uint32_t | ll_xqspi_is_enable_cache_retention (void)
| Check if tag memory retention is enabled. More...
__STATIC_FORCEINLINE void | ll_xqspi_enable_exflash_auto_power (void)
| Enable exflash power auto power up by hw. More...
__STATIC_FORCEINLINE void | ll_xqspi_disable_exflash_auto_power (void)
| Disable exflash power auto power up by hwr. More...

## Detailed Description

## Function Documentation

## ◆ ll_xqspi_clear_qspi_flag()

__STATIC_FORCEINLINE void ll_xqspi_clear_qspi_flag | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | flag
| ) |  |

Clear interrupt flag.

Note
  Clearing interrupt flag is done by writting INTCLR register

Register|BitsName --------|-------- INTCLR |INT_CLR

Parameters

  XQSPIx | XQSPI instance
  flag | This parameter can be one of the following values: LL_XQSPI_QSPI_IM_DONE LL_XQSPI_QSPI_IM_RFF LL_XQSPI_QSPI_IM_RFTF LL_XQSPI_QSPI_IM_TFTF LL_XQSPI_QSPI_IM_TFE

Return values

  None |

Definition at line 2222 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_1st_prefecth()

__STATIC_FORCEINLINE void ll_xqspi_disable_1st_prefecth | ( | xqspi_regs_t * | XQSPIx | ) |

disable 1st prefecth function

Note
  This bit should not be changed when XIP is ongoing.

Register |BitsName -------------------|-------- CS_IDLE_UNVLD_EN |XQSPI_QSPI_1ST_PRETETCH_DIS

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2400 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_cache_retention()

__STATIC_FORCEINLINE void ll_xqspi_disable_cache_retention | ( | void |  | ) |

Disable cache data retention.

Note
  This bit should not be changed when XIP is ongoing.

Register|BitsName --------|-------- PWR_RET01 | XF_TAG_RET

Return values

  None |

Definition at line 2545 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_disable_exflash_auto_power()

__STATIC_FORCEINLINE void ll_xqspi_disable_exflash_auto_power | ( | void |  | ) |

Disable exflash power auto power up by hwr.

Note
  This bit should not be changed when XIP is ongoing.

Register|BitsName --------|-------- PWR_RET01 | EFLASH_PAD_EN

Return values

  None |

Definition at line 2589 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_disable_exflash_power()

__STATIC_FORCEINLINE void ll_xqspi_disable_exflash_power | ( | void |  | ) |

Disable exflash power.

Note
  This bit should not be changed when XIP is ongoing.

Register|BitsName --------|-------- PWR_RET01 | EFLASH_PAD_EN

Return values

  None |

Definition at line 2462 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_disable_inhibt_rx()

__STATIC_FORCEINLINE void ll_xqspi_disable_inhibt_rx | ( | xqspi_regs_t * | XQSPIx | ) |

Disable inhibt data input to RX FIFO.

Register|BitsName --------|-------- AUX_CTRL|INHIBITDIN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1854 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_inhibt_tx()

__STATIC_FORCEINLINE void ll_xqspi_disable_inhibt_tx | ( | xqspi_regs_t * | XQSPIx | ) |

Disable inhibt data output to TX FIFO.

Register|BitsName --------|-------- AUX_CTRL|INHIBITDOUT

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1899 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_key_pulse()

__STATIC_FORCEINLINE void ll_xqspi_disable_key_pulse | ( | xqspi_regs_t * | XQSPIx | ) |

disable key_pulse to interrupt rd_data state

Note
  This bit should not be changed when XIP is ongoing.

Register |BitsName -------------------|-------- CS_IDLE_UNVLD_EN |XQSPI_QSPI_KEY_PULSE_DIS

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2432 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_qspi()

__STATIC_FORCEINLINE void ll_xqspi_disable_qspi | ( | xqspi_regs_t * | XQSPIx | ) |

Disable QSPI.

Register|BitsName --------|-------- SPIEN |EN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2284 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_qspi_contxfer()

__STATIC_FORCEINLINE void ll_xqspi_disable_qspi_contxfer | ( | xqspi_regs_t * | XQSPIx | ) |

Disable continuous transfer mode.

Register|BitsName --------|-------- CTRL |CONTXFER

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1716 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_qspi_contxfer_extend()

__STATIC_FORCEINLINE void ll_xqspi_disable_qspi_contxfer_extend | ( | xqspi_regs_t * | XQSPIx | ) |

Disable continuous transfer extend mode.

Register|BitsName --------|-------- AUX_CTRL|CONTXFERX

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1761 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_qspi_dma()

__STATIC_FORCEINLINE void ll_xqspi_disable_qspi_dma | ( | xqspi_regs_t * | XQSPIx | ) |

Disable DMA mode.

Register|BitsName --------|-------- CTRL |DMA

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1564 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_qspi_dummy()

__STATIC_FORCEINLINE void ll_xqspi_disable_qspi_dummy | ( | xqspi_regs_t * | XQSPIx | ) |

Disable dummy cycles.

Register|BitsName --------|-------- CTRL |MWAITEN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1519 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_qspi_it()

__STATIC_FORCEINLINE void ll_xqspi_disable_qspi_it | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | mask
| ) |  |

Disable interrupt.

Note
  This bit controls the generation of an interrupt when an event occurs.

Register|BitsName --------|-------- INTEN |INT_EN

Parameters

  XQSPIx | XQSPI instance
  mask | This parameter can be one of the following values: LL_XQSPI_QSPI_IM_DONE LL_XQSPI_QSPI_IM_RFF LL_XQSPI_QSPI_IM_RFTF LL_XQSPI_QSPI_IM_TFTF LL_XQSPI_QSPI_IM_TFE

Return values

  None |

Definition at line 2134 of file ll_xqspi.h.

## ◆ ll_xqspi_disable_qspi_ssout()

__STATIC_FORCEINLINE void ll_xqspi_disable_qspi_ssout | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | ssout
| ) |  |

Disable slave select output.

Register|BitsName --------|-------- SLAVE_SEL|OUT3 OUT2 OUT1 OUT0

Parameters

  XQSPIx | XQSPI instance
  ssout | This parameter can between: 0 ~ 0xFF

Return values

  None |

Definition at line 2029 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_1st_prefecth()

__STATIC_FORCEINLINE void ll_xqspi_enable_1st_prefecth | ( | xqspi_regs_t * | XQSPIx | ) |

enable 1st prefecth function

Note
  This bit should not be changed when XIP is ongoing.

Register |BitsName -------------------|-------- CS_IDLE_UNVLD_EN |XQSPI_QSPI_1ST_PRETETCH_DIS

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2384 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_cache_retention()

__STATIC_FORCEINLINE void ll_xqspi_enable_cache_retention | ( | void |  | ) |

Enable cache data retention.

Note
  This bit should not be changed when XIP is ongoing..

Register|BitsName --------|-------- PWR_RET01 | XF_TAG_RET

Return values

  None |

Definition at line 2530 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_enable_exflash_auto_power()

__STATIC_FORCEINLINE void ll_xqspi_enable_exflash_auto_power | ( | void |  | ) |

Enable exflash power auto power up by hw.

Note
  This bit should not be changed when XIP is ongoing.

Register|BitsName --------|-------- PWR_RET01 | EFLASH_PAD_EN

Return values

  None |

Definition at line 2574 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_enable_exflash_power()

__STATIC_FORCEINLINE void ll_xqspi_enable_exflash_power | ( | void |  | ) |

Enable exflash power.

Note
  This bit should not be changed when XIP is ongoing.

Register|BitsName --------|-------- PWR_RET01 | EFLASH_PAD_EN

Return values

  None |

Definition at line 2447 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_enable_inhibt_rx()

__STATIC_FORCEINLINE void ll_xqspi_enable_inhibt_rx | ( | xqspi_regs_t * | XQSPIx | ) |

Enable inhibt data input to RX FIFO.

Register|BitsName --------|-------- AUX_CTRL|INHIBITDIN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1839 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_inhibt_tx()

__STATIC_FORCEINLINE void ll_xqspi_enable_inhibt_tx | ( | xqspi_regs_t * | XQSPIx | ) |

Enable inhibt data output to TX FIFO.

Register|BitsName --------|-------- AUX_CTRL|INHIBITDOUT

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1884 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_key_pulse()

__STATIC_FORCEINLINE void ll_xqspi_enable_key_pulse | ( | xqspi_regs_t * | XQSPIx | ) |

enable key_pulse to interrupt rd_data state

Note
  This bit should not be changed when XIP is ongoing.

Register |BitsName -------------------|-------- CS_IDLE_UNVLD_EN |XQSPI_QSPI_KEY_PULSE_DIS

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2416 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_qspi()

__STATIC_FORCEINLINE void ll_xqspi_enable_qspi | ( | xqspi_regs_t * | XQSPIx | ) |

Enable QSPI.

Note
  This bit should not be enable when XIP is ongoing.

Register|BitsName --------|-------- SPIEN |EN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2269 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_qspi_contxfer()

__STATIC_FORCEINLINE void ll_xqspi_enable_qspi_contxfer | ( | xqspi_regs_t * | XQSPIx | ) |

Enable continuous transfer mode.

Register|BitsName --------|-------- CTRL |CONTXFER

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1701 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_qspi_contxfer_extend()

__STATIC_FORCEINLINE void ll_xqspi_enable_qspi_contxfer_extend | ( | xqspi_regs_t * | XQSPIx | ) |

Enable continuous transfer extend mode.

Register|BitsName --------|-------- AUX_CTRL|CONTXFERX

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1746 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_qspi_dma()

__STATIC_FORCEINLINE void ll_xqspi_enable_qspi_dma | ( | xqspi_regs_t * | XQSPIx | ) |

Enable DMA mode.

Register|BitsName --------|-------- CTRL |DMA

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1549 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_qspi_dummy()

__STATIC_FORCEINLINE void ll_xqspi_enable_qspi_dummy | ( | xqspi_regs_t * | XQSPIx | ) |

Enable dummy cycles.

Register|BitsName --------|-------- CTRL |MWAITEN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 1504 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_qspi_it()

__STATIC_FORCEINLINE void ll_xqspi_enable_qspi_it | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | mask
| ) |  |

Enable interrupt.

Note
  This bit controls the generation of an interrupt when an event occurs.

Register|BitsName --------|-------- INTEN |INT_EN

Parameters

  XQSPIx | XQSPI instance
  mask | This parameter can be one of the following values: LL_XQSPI_QSPI_IM_DONE LL_XQSPI_QSPI_IM_RFF LL_XQSPI_QSPI_IM_RFTF LL_XQSPI_QSPI_IM_TFTF LL_XQSPI_QSPI_IM_TFE

Return values

  None |

Definition at line 2112 of file ll_xqspi.h.

## ◆ ll_xqspi_enable_qspi_ssout()

__STATIC_FORCEINLINE void ll_xqspi_enable_qspi_ssout | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | ssout
| ) |  |

Enable slave select output.

Register|BitsName --------|-------- SLAVE_SEL|OUT3 OUT2 OUT1 OUT0

Parameters

  XQSPIx | XQSPI instance
  ssout | This parameter can between: 0 ~ 0xFF

Return values

  None |

Definition at line 2013 of file ll_xqspi.h.

## ◆ ll_xqspi_get_flash_write()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_flash_write | ( | xqspi_regs_t * | XQSPIx | ) |

Get QSPI Flash write bits.

Register|BitsName --------|-------- FLASH_WRITE |FLASH_WRITE

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one of the following values: LL_XQSPI_FLASH_WRITE_128BIT LL_XQSPI_FLASH_WRITE_32BIT

Definition at line 2334 of file ll_xqspi.h.

## ◆ ll_xqspi_get_it_flag()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_it_flag | ( | xqspi_regs_t * | XQSPIx | ) |

Get XQSPI interrupt flags.

Register|BitsName --------|-------- INTSTAT |INT_STAT

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one or combination of the following values: LL_XQSPI_QSPI_IS_DONE LL_XQSPI_QSPI_IS_RFF LL_XQSPI_QSPI_IS_RFTF LL_XQSPI_QSPI_IS_TFTF LL_XQSPI_QSPI_IS_TFE

Definition at line 2175 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_cpha()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_cpha | ( | xqspi_regs_t * | XQSPIx | ) |

Get clock phase.

Register|BitsName --------|-------- CTRL |CPHA

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one of the following values: LL_XQSPI_SCPHA_1EDGE LL_XQSPI_SCPHA_2EDGE

Definition at line 1651 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_cpol()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_cpol | ( | xqspi_regs_t * | XQSPIx | ) |

Get clock polarity.

Register|BitsName --------|-------- CTRL |CPOL

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one of the following values: LL_XQSPI_SCPOL_LOW LL_XQSPI_SCPOL_HIGH

Definition at line 1615 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_data_order()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_data_order | ( | xqspi_regs_t * | XQSPIx | ) |

Get serial data order.

Register|BitsName --------|-------- CTRL |MSB1ST

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one of the following values: LL_XQSPI_QSPI_LSB LL_XQSPI_QSPI_MSB

Definition at line 1686 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_datasize()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_datasize | ( | xqspi_regs_t * | XQSPIx | ) |

Get data size.

Register|BitsName --------|-------- AUX_CTRL|BITSIZE

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one of the following values: LL_XQSPI_QSPI_DATASIZE_4BIT LL_XQSPI_QSPI_DATASIZE_8BIT LL_XQSPI_QSPI_DATASIZE_12BIT LL_XQSPI_QSPI_DATASIZE_16BIT LL_XQSPI_QSPI_DATASIZE_20BIT LL_XQSPI_QSPI_DATASIZE_24BIT LL_XQSPI_QSPI_DATASIZE_28BIT LL_XQSPI_QSPI_DATASIZE_32BIT

Definition at line 1824 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_frf()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_frf | ( | xqspi_regs_t * | XQSPIx | ) |

Get frame format.

Register|BitsName --------|-------- AUX_CTRL|QMODE

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one even value: LL_XQSPI_QSPI_FRF_SPI LL_XQSPI_QSPI_FRF_DUALSPI LL_XQSPI_QSPI_FRF_QUADSPI

Definition at line 1952 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_rft()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_rft | ( | xqspi_regs_t * | XQSPIx | ) |

Get RX FIFO threshold level.

Note
  FIFO maximum depth is 16 units.

Register|BitsName --------|-------- CTRL |RXWMARK

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one of the following values: LL_XQSPI_QSPI_FIFO_WATERMARK_1_8 LL_XQSPI_QSPI_FIFO_WATERMARK_1_4 LL_XQSPI_QSPI_FIFO_WATERMARK_1_2 LL_XQSPI_QSPI_FIFO_WATERMARK_3_4

Definition at line 1489 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_rx_fifo_level()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_rx_fifo_level | ( | xqspi_regs_t * | XQSPIx | ) |

Get FIFO reception Level.

Register|BitsName --------|-------- RX_FIFO_LVL | RXFIFOLVL

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can between: 0 ~ 16

Definition at line 2090 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_speed()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_speed | ( | void |  | ) |

Get XQSPI serial clock.

Register|BitsName --------|-------- PWR_RET01 | XF_SCK_CLK_SEL

Return values

  Returned | Value can be one of the following values: LL_XQSPI_BAUD_RATE_64M LL_XQSPI_BAUD_RATE_48M LL_XQSPI_BAUD_RATE_32M LL_XQSPI_BAUD_RATE_24M LL_XQSPI_BAUD_RATE_16M

Definition at line 2515 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_get_qspi_sspol()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_sspol | ( | xqspi_regs_t * | XQSPIx | ) |

Get slave select output polarity.

Register|BitsName --------|-------- SLAVE_SEL_POL|POL3 POL2 POL1 POL0

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can between: 0 ~ 0xFF

Definition at line 2060 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_status()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_status | ( | xqspi_regs_t * | XQSPIx | ) |

Get QSPI status.

Register|BitsName --------|-------- STATUS | RXFULL RXWMARK RXEMPTY TXFULL TXWMARK TXEMPTY XFERIP

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one or combination of the following values: LL_XQSPI_QSPI_STAT_RFTF LL_XQSPI_QSPI_STAT_RFF LL_XQSPI_QSPI_STAT_RFE LL_XQSPI_QSPI_STAT_TFTF LL_XQSPI_QSPI_STAT_TFF LL_XQSPI_QSPI_STAT_TFE LL_XQSPI_QSPI_STAT_BUSY

Definition at line 1974 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_tft()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_tft | ( | xqspi_regs_t * | XQSPIx | ) |

Get TX FIFO threshold level.

Note
  FIFO maximum depth is 16 units.

Register|BitsName --------|-------- CTRL |TXWMARK

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can be one of the following values: LL_XQSPI_QSPI_FIFO_WATERMARK_1_8 LL_XQSPI_QSPI_FIFO_WATERMARK_1_4 LL_XQSPI_QSPI_FIFO_WATERMARK_1_2 LL_XQSPI_QSPI_FIFO_WATERMARK_3_4

Definition at line 1448 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_tx_fifo_level()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_tx_fifo_level | ( | xqspi_regs_t * | XQSPIx | ) |

Get FIFO Transmission Level.

Register|BitsName --------|-------- TX_FIFO_LVL | TXFIFOLVL

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can between: 0 ~ 16

Definition at line 2075 of file ll_xqspi.h.

## ◆ ll_xqspi_get_qspi_wait()

__STATIC_FORCEINLINE uint32_t ll_xqspi_get_qspi_wait | ( | xqspi_regs_t * | XQSPIx | ) |

Get master inter-transfer delay.

Register|BitsName --------|-------- MSTR_IT_DELAY | MWAIT

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value can between: 0 ~ 255

Definition at line 2253 of file ll_xqspi.h.

## ◆ ll_xqspi_is_active_qspi_flag()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_active_qspi_flag | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | flag
| ) |  |

Check active flag.

Register|BitsName --------|-------- STATUS | RXFULL RXWMARK RXEMPTY TXFULL TXWMARK TXEMPTY XFERIP

Parameters

  XQSPIx | XQSPI instance
  flag | This parameter can be one of the following values: LL_XQSPI_QSPI_STAT_RFTF LL_XQSPI_QSPI_STAT_RFF LL_XQSPI_QSPI_STAT_RFE LL_XQSPI_QSPI_STAT_TFTF LL_XQSPI_QSPI_STAT_TFF LL_XQSPI_QSPI_STAT_TFE LL_XQSPI_QSPI_STAT_BUSY

Return values

  State | of bit (1 or 0).

Definition at line 1997 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enable_cache_retention()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enable_cache_retention | ( | void |  | ) |

Check if tag memory retention is enabled.

Register|BitsName --------|-------- PWR_RET01 | XF_TAG_RET

Return values

  State | of bit (1 or 0).

Definition at line 2559 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_is_enable_exflash_power()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enable_exflash_power | ( | void |  | ) |

Check if exflash power is enabled.

Register|BitsName --------|-------- PWR_RET01 | EFLASH_PAD_EN

Return values

  State | of bit (1 or 0).

Definition at line 2476 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_is_enabled_inhibt_rx()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_inhibt_rx | ( | xqspi_regs_t * | XQSPIx | ) |

Check if inhibt data input to RX FIFO is enabled.

Register|BitsName --------|-------- AUX_CTRL|INHIBITDIN

Parameters

  XQSPIx | XQSPI instance

Return values

  State | of bit (1 or 0).

Definition at line 1869 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enabled_inhibt_tx()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_inhibt_tx | ( | xqspi_regs_t * | XQSPIx | ) |

Check if inhibt data input to TX FIFO is enabled.

Register|BitsName --------|-------- AUX_CTRL|INHIBITDOUT

Parameters

  XQSPIx | XQSPI instance

Return values

  State | of bit (1 or 0).

Definition at line 1914 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enabled_qspi()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_qspi | ( | xqspi_regs_t * | XQSPIx | ) |

Check if QSPI is enabled.

Register|BitsName --------|-------- SPIEN |EN

Parameters

  XQSPIx | XQSPI instance

Return values

  State | of bit (1 or 0).

Definition at line 2299 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enabled_qspi_contxfer()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_qspi_contxfer | ( | xqspi_regs_t * | XQSPIx | ) |

Check if continuous transfer mode is enabled.

Register|BitsName --------|-------- CTRL |CONTXFER

Parameters

  XQSPIx | XQSPI instance

Return values

  State | of bit (1 or 0).

Definition at line 1731 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enabled_qspi_contxfer_extend()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_qspi_contxfer_extend | ( | xqspi_regs_t * | XQSPIx | ) |

Check if continuous transfer extend mode is enabled.

Register|BitsName --------|-------- AUX_CTRL|CONTXFERX

Parameters

  XQSPIx | XQSPI instance

Return values

  State | of bit (1 or 0).

Definition at line 1776 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enabled_qspi_dma()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_qspi_dma | ( | xqspi_regs_t * | XQSPIx | ) |

Check if DMA mode is enabled.

Register|BitsName --------|-------- CTRL |DMA

Parameters

  XQSPIx | XQSPI instance

Return values

  State | of bit (1 or 0).

Definition at line 1579 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enabled_qspi_dummy()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_qspi_dummy | ( | xqspi_regs_t * | XQSPIx | ) |

Check if dummy cycles is enabled.

Register|BitsName --------|-------- CTRL |MWAITEN

Parameters

  XQSPIx | XQSPI instance

Return values

  State | of bit (1 or 0).

Definition at line 1534 of file ll_xqspi.h.

## ◆ ll_xqspi_is_enabled_qspi_it()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_enabled_qspi_it | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | mask
| ) |  |

Check if interrupt is enabled.

Register|BitsName --------|-------- INTEN |INT_EN

Parameters

  XQSPIx | XQSPI instance
  mask | This parameter can be one of the following values: LL_XQSPI_QSPI_IM_DONE LL_XQSPI_QSPI_IM_RFF LL_XQSPI_QSPI_IM_RFTF LL_XQSPI_QSPI_IM_TFTF LL_XQSPI_QSPI_IM_TFE

Return values

  State | of bit (1 or 0).

Definition at line 2155 of file ll_xqspi.h.

## ◆ ll_xqspi_is_qspi_it_flag()

__STATIC_FORCEINLINE uint32_t ll_xqspi_is_qspi_it_flag | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | flag
| ) |  |

Check interrupt flag.

Register|BitsName --------|-------- INTSTAT | XFER_DPULSE INTSTAT | RX_FPULSE INTSTAT | RX_WPULSE INTSTAT | TX_WPULSE INTSTAT | TX_EPULSE

Parameters

  XQSPIx | XQSPI instance
  flag | This parameter can be one of the following values: LL_XQSPI_QSPI_IS_DONE LL_XQSPI_QSPI_IS_RFF LL_XQSPI_QSPI_IS_RFTF LL_XQSPI_QSPI_IS_TFTF LL_XQSPI_QSPI_IS_TFE

Return values

  State | of bit (1 or 0).

Definition at line 2200 of file ll_xqspi.h.

## ◆ ll_xqspi_qspi_receive_data16()

__STATIC_FORCEINLINE uint16_t ll_xqspi_qspi_receive_data16 | ( | xqspi_regs_t * | XQSPIx | ) |

Read 16 bits in the data register.

Register|BitsName --------|-------- RX_DATA | DATA

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value between: 0x00 ~ 0xFFFF

Definition at line 1392 of file ll_xqspi.h.

## ◆ ll_xqspi_qspi_receive_data32()

__STATIC_FORCEINLINE uint32_t ll_xqspi_qspi_receive_data32 | ( | xqspi_regs_t * | XQSPIx | ) |

Read 32 bits in the data register.

Register|BitsName --------|-------- RX_DATA | DATA

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value between: 0x00 ~ 0xFFFFFFFF

Definition at line 1407 of file ll_xqspi.h.

## ◆ ll_xqspi_qspi_receive_data8()

__STATIC_FORCEINLINE uint8_t ll_xqspi_qspi_receive_data8 | ( | xqspi_regs_t * | XQSPIx | ) |

Read 8 bits in the data register.

Register|BitsName --------|-------- RX_DATA | DATA

Parameters

  XQSPIx | XQSPI instance

Return values

  Returned | Value between: 0x00 ~ 0xFF

Definition at line 1377 of file ll_xqspi.h.

## ◆ ll_xqspi_qspi_transmit_data16()

__STATIC_FORCEINLINE void ll_xqspi_qspi_transmit_data16 | ( | xqspi_regs_t * | XQSPIx,
|  | uint16_t | tx_data
| ) |  |

Write 16-bit in the data register.

Register|BitsName --------|-------- TX_DATA | DATA

Parameters

  XQSPIx | XQSPI instance
  tx_data | This parameter can between: 0x00 ~ 0xFFFF

Return values

  None |

Definition at line 1346 of file ll_xqspi.h.

## ◆ ll_xqspi_qspi_transmit_data32()

__STATIC_FORCEINLINE void ll_xqspi_qspi_transmit_data32 | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | tx_data
| ) |  |

Write 32-bit in the data register.

Register|BitsName --------|-------- TX_DATA | DATA

Parameters

  XQSPIx | XQSPI instance
  tx_data | This parameter can between: 0x00 ~ 0xFFFFFFFF

Return values

  None |

Definition at line 1362 of file ll_xqspi.h.

## ◆ ll_xqspi_qspi_transmit_data8()

__STATIC_FORCEINLINE void ll_xqspi_qspi_transmit_data8 | ( | xqspi_regs_t * | XQSPIx,
|  | uint8_t | tx_data
| ) |  |

Write 8-bit in the data register.

Register|BitsName --------|-------- TX_DATA | DATA

Parameters

  XQSPIx | XQSPI instance
  tx_data | This parameter can between: 0x00 ~ 0xFF

Return values

  None |

Definition at line 1330 of file ll_xqspi.h.

## ◆ ll_xqspi_set_cs_idle_invalid()

__STATIC_FORCEINLINE void ll_xqspi_set_cs_idle_invalid | ( | xqspi_regs_t * | XQSPIx | ) |

CS keeps invalid while not reading.

Note
  This bit should not be changed when XIP is ongoing.

Register |BitsName -------------------|-------- CS_IDLE_UNVLD_EN |XQSPI_QSPI_CS_IDLE_UNVLD_EN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2367 of file ll_xqspi.h.

## ◆ ll_xqspi_set_cs_idle_valid()

__STATIC_FORCEINLINE void ll_xqspi_set_cs_idle_valid | ( | xqspi_regs_t * | XQSPIx | ) |

CS keeps valid while not reading.

Note
  This bit should not be changed when XIP is ongoing.

Register |BitsName -------------------|-------- CS_IDLE_UNVLD_EN |XQSPI_QSPI_CS_IDLE_UNVLD_EN

Parameters

  XQSPIx | XQSPI instance

Return values

  None |

Definition at line 2351 of file ll_xqspi.h.

## ◆ ll_xqspi_set_flash_write()

__STATIC_FORCEINLINE void ll_xqspi_set_flash_write | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | bits
| ) |  |

Set QSPI Flash write bits.

Register|BitsName --------|-------- FLASH_WRITE |FLASH_WRITE

Parameters

  XQSPIx | XQSPI instance
  bits | This parameter can be one of the following values: LL_XQSPI_FLASH_WRITE_128BIT LL_XQSPI_FLASH_WRITE_32BIT

Return values

  None |

Definition at line 2317 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_cpha()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_cpha | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | cpha
| ) |  |

Set clock phase.

Note
  This bit should not be changed when communication is ongoing.

Register|BitsName --------|-------- CTRL |CPHA

Parameters

  XQSPIx | XQSPI instance
  cpha | This parameter can be one of the following values: LL_XQSPI_SCPHA_1EDGE LL_XQSPI_SCPHA_2EDGE

Return values

  None |

Definition at line 1634 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_cpol()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_cpol | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | cpol
| ) |  |

Set clock polarity.

Note
  This bit should not be changed when communication is ongoing.

Register|BitsName --------|-------- CTRL |CPOL

Parameters

  XQSPIx | XQSPI instance
  cpol | This parameter can be one of the following values: LL_XQSPI_SCPOL_LOW LL_XQSPI_SCPOL_HIGH

Return values

  None |

Definition at line 1598 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_data_order()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_data_order | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | order
| ) |  |

Set serial data order.

Register|BitsName --------|-------- CTRL |MSB1ST

Parameters

  XQSPIx | XQSPI instance
  order | This parameter can be one of the following values: LL_XQSPI_QSPI_LSB LL_XQSPI_QSPI_MSB

Return values

  None |

Definition at line 1669 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_datasize()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_datasize | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | szie
| ) |  |

Set data size.

Note
  These bits should not be changed when communication is ongoing.

Register|BitsName --------|-------- AUX_CTRL|BITSIZE

Parameters

  XQSPIx | XQSPI instance
  szie | This parameter can be one of the following values: LL_XQSPI_QSPI_DATASIZE_4BIT LL_XQSPI_QSPI_DATASIZE_8BIT LL_XQSPI_QSPI_DATASIZE_12BIT LL_XQSPI_QSPI_DATASIZE_16BIT LL_XQSPI_QSPI_DATASIZE_20BIT LL_XQSPI_QSPI_DATASIZE_24BIT LL_XQSPI_QSPI_DATASIZE_28BIT LL_XQSPI_QSPI_DATASIZE_32BIT

Return values

  None |

Definition at line 1801 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_frf()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_frf | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | format
| ) |  |

Set frame format.

Note
  These bits should not be changed when communication is ongoing.

Register|BitsName --------|-------- AUX_CTRL|QMODE

Parameters

  XQSPIx | XQSPI instance
  format | This parameter can be one of the following values: LL_XQSPI_QSPI_FRF_SPI LL_XQSPI_QSPI_FRF_DUALSPI LL_XQSPI_QSPI_FRF_QUADSPI

Return values

  None |

Definition at line 1934 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_rft()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_rft | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | threshold
| ) |  |

Set RX FIFO threshold level.

Note
  FIFO maximum depth is 16 units.

Register|BitsName --------|-------- CTRL |RXWMARK

Parameters

  XQSPIx | XQSPI instance
  threshold | This parameter can be one of the following values: LL_XQSPI_QSPI_FIFO_WATERMARK_1_8 LL_XQSPI_QSPI_FIFO_WATERMARK_1_4 LL_XQSPI_QSPI_FIFO_WATERMARK_1_2 LL_XQSPI_QSPI_FIFO_WATERMARK_3_4

Return values

  None |

Definition at line 1469 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_speed()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_speed | ( | uint32_t | speed | ) |

Set XQSPI serial clock.

Register|BitsName --------|-------- PWR_RET01 | XF_SCK_CLK_SEL

Parameters

  speed | This parameter can be one of the following values: LL_XQSPI_BAUD_RATE_64M LL_XQSPI_BAUD_RATE_48M LL_XQSPI_BAUD_RATE_32M LL_XQSPI_BAUD_RATE_24M LL_XQSPI_BAUD_RATE_16M

Return values

  None |

Definition at line 2496 of file ll_xqspi.h.

References AON_CTL.

## ◆ ll_xqspi_set_qspi_sspol()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_sspol | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | sspol
| ) |  |

Set slave select output polarity.

Register|BitsName --------|-------- SLAVE_SEL_POL|POL3 POL2 POL1 POL0

Parameters

  XQSPIx | XQSPI instance
  sspol | This parameter can between: 0 ~ 0xFF

Return values

  None |

Definition at line 2045 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_tft()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_tft | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | threshold
| ) |  |

Set TX FIFO threshold level.

Note
  FIFO maximum depth is 16 units.

Register|BitsName --------|-------- CTRL |TXWMARK

Parameters

  XQSPIx | XQSPI instance
  threshold | This parameter can be one of the following values: LL_XQSPI_QSPI_FIFO_WATERMARK_1_8 LL_XQSPI_QSPI_FIFO_WATERMARK_1_4 LL_XQSPI_QSPI_FIFO_WATERMARK_1_2 LL_XQSPI_QSPI_FIFO_WATERMARK_3_4

Return values

  None |

Definition at line 1428 of file ll_xqspi.h.

## ◆ ll_xqspi_set_qspi_wait()

__STATIC_FORCEINLINE void ll_xqspi_set_qspi_wait | ( | xqspi_regs_t * | XQSPIx,
|  | uint32_t | wait
| ) |  |

Set master inter-transfer delay.

Register|BitsName --------|-------- MSTR_IT_DELAY | MWAIT

Parameters

  XQSPIx | XQSPI instance
  wait | This parameter can between: 0 ~ 255

Return values

  None |

Definition at line 2238 of file ll_xqspi.h.