Configuration functions

Macros

#define ll_qspi_set_xfer_size   ll_qspi_set_receive_size
 

Functions

__STATIC_INLINE void ll_qspi_enable_ss_toggle (qspi_regs_t *QSPIx)
 Enable slave select toggle. More...
 
__STATIC_INLINE void ll_qspi_disable_ss_toggle (qspi_regs_t *QSPIx)
 Disable slave select toggle. More...
 
__STATIC_INLINE uint32_t ll_qspi_is_enabled_ss_toggle (qspi_regs_t *QSPIx)
 Check if slave select toggle is enabled. More...
 
__STATIC_INLINE void ll_qspi_set_frame_format (qspi_regs_t *QSPIx, uint32_t frf)
 Set data frame format for transmitting/receiving the data. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_frame_format (qspi_regs_t *QSPIx)
 Get data frame format for transmitting/receiving the data. More...
 
__STATIC_INLINE void ll_qspi_set_data_size (qspi_regs_t *QSPIx, uint32_t size)
 Set frame data size. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_data_size (qspi_regs_t *QSPIx)
 Get frame data size. More...
 
__STATIC_INLINE void ll_qspi_set_control_frame_size (qspi_regs_t *QSPIx, uint32_t size)
 Set the length of the control word for the Microwire frame format. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_control_frame_size (qspi_regs_t *QSPIx)
 Get the length of the control word for the Microwire frame format. More...
 
__STATIC_INLINE void ll_qspi_enable_test_mode (qspi_regs_t *QSPIx)
 Enable SPI test mode. More...
 
__STATIC_INLINE void ll_qspi_disable_test_mode (qspi_regs_t *QSPIx)
 Disable SPI test mode. More...
 
__STATIC_INLINE uint32_t ll_qspi_is_enabled_test_mode (qspi_regs_t *QSPIx)
 Check if SPI test mode is enabled. More...
 
__STATIC_INLINE void ll_qspi_enable_slave_out (qspi_regs_t *QSPIx)
 Enable slave output. More...
 
__STATIC_INLINE void ll_qspi_disable_salve_out (qspi_regs_t *QSPIx)
 Disable slave output. More...
 
__STATIC_INLINE uint32_t ll_qspi_is_enabled_slave_out (qspi_regs_t *QSPIx)
 Check if slave output is enabled. More...
 
__STATIC_INLINE void ll_qspi_set_transfer_direction (qspi_regs_t *QSPIx, uint32_t transfer_direction)
 Set transfer direction mode. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_transfer_direction (qspi_regs_t *QSPIx)
 Get transfer direction mode. More...
 
__STATIC_INLINE void ll_qspi_set_clock_polarity (qspi_regs_t *QSPIx, uint32_t clock_polarity)
 Set clock polarity. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_clock_polarity (qspi_regs_t *QSPIx)
 Get clock polarity. More...
 
__STATIC_INLINE void ll_qspi_set_clock_phase (qspi_regs_t *QSPIx, uint32_t clock_phase)
 Set clock phase. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_clock_phase (qspi_regs_t *QSPIx)
 Get clock phase. More...
 
__STATIC_INLINE void ll_qspi_set_standard (qspi_regs_t *QSPIx, uint32_t standard)
 Set serial protocol used. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_standard (qspi_regs_t *QSPIx)
 Get serial protocol used. More...
 
__STATIC_INLINE void ll_qspi_set_receive_size (qspi_regs_t *QSPIx, uint32_t size)
 Set the number of data frames to be continuously received. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_receive_size (qspi_regs_t *QSPIx)
 Get the number of data frames to be continuously received. More...
 
__STATIC_INLINE void ll_qspi_enable (qspi_regs_t *QSPIx)
 Enable SPI peripheral. More...
 
__STATIC_INLINE void ll_qspi_disable (qspi_regs_t *QSPIx)
 Disable SPI peripheral. More...
 
__STATIC_INLINE uint32_t ll_qspi_is_enabled (qspi_regs_t *QSPIx)
 Check if SPI peripheral is enabled. More...
 
__STATIC_INLINE void ll_qspi_enable_micro_handshake (qspi_regs_t *QSPIx)
 Enable Handshake in Microwire mode. More...
 
__STATIC_INLINE void ll_qspi_disable_micro_handshake (qspi_regs_t *QSPIx)
 Disable Handshake in Microwire mode. More...
 
__STATIC_INLINE uint32_t ll_qspi_is_enabled_micro_handshake (qspi_regs_t *QSPIx)
 Check if Handshake in Microwire mode is enabled. More...
 
__STATIC_INLINE void ll_qspi_set_micro_transfer_direction (qspi_regs_t *QSPIx, uint32_t transfer_direction)
 Set transfer direction mode in Microwire mode. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_micro_transfer_direction (qspi_regs_t *QSPIx)
 Get transfer direction mode in Microwire mode. More...
 
__STATIC_INLINE void ll_qspi_set_micro_transfer_mode (qspi_regs_t *QSPIx, uint32_t transfer_mode)
 Set transfer mode in Microwire mode. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_micro_transfer_mode (qspi_regs_t *QSPIx)
 Get transfer mode in Microwire mode. More...
 
__STATIC_INLINE void ll_qspi_enable_ss (qspi_regs_t *QSPIx, uint32_t ss)
 Enable slave select. More...
 
__STATIC_INLINE void ll_qspi_disable_ss (qspi_regs_t *QSPIx, uint32_t ss)
 Disable slave select. More...
 
__STATIC_INLINE uint32_t ll_qspi_is_enabled_ss (qspi_regs_t *QSPIx, uint32_t ss)
 Check if slave select is enabled. More...
 
__STATIC_INLINE void ll_qspi_set_baud_rate_prescaler (qspi_regs_t *QSPIx, uint32_t baud_rate)
 Set baud rate prescaler. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_baud_rate_prescaler (qspi_regs_t *QSPIx)
 Get baud rate prescaler. More...
 
__STATIC_INLINE void ll_qspi_set_tx_start_fifo_threshold (qspi_regs_t *QSPIx, uint32_t threshold)
 Set threshold of TX transfer start. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_tx_start_fifo_threshold (qspi_regs_t *QSPIx)
 Get threshold of TX transfer start. More...
 
__STATIC_INLINE void ll_qspi_set_tx_fifo_threshold (qspi_regs_t *QSPIx, uint32_t threshold)
 Set threshold of TXFIFO that triggers an TXE event. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_tx_fifo_threshold (qspi_regs_t *QSPIx)
 Get threshold of TXFIFO that triggers an TXE event. More...
 
__STATIC_INLINE void ll_qspi_set_rx_fifo_threshold (qspi_regs_t *QSPIx, uint32_t threshold)
 Set threshold of RXFIFO that triggers an RXNE event. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_rx_fifo_threshold (qspi_regs_t *QSPIx)
 Get threshold of RXFIFO that triggers an RXNE event. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_tx_fifo_level (qspi_regs_t *QSPIx)
 Get FIFO Transmission Level. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_rx_fifo_level (qspi_regs_t *QSPIx)
 Get FIFO reception Level. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_id_code (qspi_regs_t *QSPIx)
 Get ID code. More...
 
__STATIC_INLINE uint32_t ll_qspi_get_version (qspi_regs_t *QSPIx)
 Get IP version. More...
 

Detailed Description

Macro Definition Documentation

◆ ll_qspi_set_xfer_size

#define ll_qspi_set_xfer_size   ll_qspi_set_receive_size

Definition at line 1302 of file gr55xx_ll_qspi.h.

Function Documentation

◆ ll_qspi_disable()

__STATIC_INLINE void ll_qspi_disable ( qspi_regs_t *  QSPIx)

Disable SPI peripheral.

Note
When disabling the SPI, follow the procedure described in the Reference Manual.

Register|BitsName --------|-------- QSPI_EN | EN

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1348 of file gr55xx_ll_qspi.h.

◆ ll_qspi_disable_micro_handshake()

__STATIC_INLINE void ll_qspi_disable_micro_handshake ( qspi_regs_t *  QSPIx)

Disable Handshake in Microwire mode.

Register|BitsName --------|-------- MWC | MHS

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1393 of file gr55xx_ll_qspi.h.

◆ ll_qspi_disable_salve_out()

__STATIC_INLINE void ll_qspi_disable_salve_out ( qspi_regs_t *  QSPIx)

Disable slave output.

Register|BitsName --------|-------- CTRL0 | SLVOE

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1112 of file gr55xx_ll_qspi.h.

◆ ll_qspi_disable_ss()

__STATIC_INLINE void ll_qspi_disable_ss ( qspi_regs_t *  QSPIx,
uint32_t  ss 
)

Disable slave select.

Register|BitsName --------|-------- SE | SLAVE1 SE | SLAVE0

Parameters
QSPIxQSPI instance
ssThis parameter can be one of the following values:
Return values
None

Definition at line 1520 of file gr55xx_ll_qspi.h.

◆ ll_qspi_disable_ss_toggle()

__STATIC_INLINE void ll_qspi_disable_ss_toggle ( qspi_regs_t *  QSPIx)

Disable slave select toggle.

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

Register|BitsName --------|-------- CTRL0 | SSTEN

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 828 of file gr55xx_ll_qspi.h.

◆ ll_qspi_disable_test_mode()

__STATIC_INLINE void ll_qspi_disable_test_mode ( qspi_regs_t *  QSPIx)

Disable SPI test mode.

Register|BitsName --------|-------- CTRL0 | SRL

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1067 of file gr55xx_ll_qspi.h.

◆ ll_qspi_enable()

__STATIC_INLINE void ll_qspi_enable ( qspi_regs_t *  QSPIx)

Enable SPI peripheral.

Register|BitsName --------|-------- QSPI_EN | EN

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1332 of file gr55xx_ll_qspi.h.

◆ ll_qspi_enable_micro_handshake()

__STATIC_INLINE void ll_qspi_enable_micro_handshake ( qspi_regs_t *  QSPIx)

Enable Handshake in Microwire mode.

Register|BitsName --------|-------- MWC | MHS

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1378 of file gr55xx_ll_qspi.h.

◆ ll_qspi_enable_slave_out()

__STATIC_INLINE void ll_qspi_enable_slave_out ( qspi_regs_t *  QSPIx)

Enable slave output.

Register|BitsName --------|-------- CTRL0 | SLVOE

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1097 of file gr55xx_ll_qspi.h.

◆ ll_qspi_enable_ss()

__STATIC_INLINE void ll_qspi_enable_ss ( qspi_regs_t *  QSPIx,
uint32_t  ss 
)

Enable slave select.

Register|BitsName --------|-------- SE | SLAVE1 SE | SLAVE0

Parameters
QSPIxQSPI instance
ssThis parameter can be one of the following values:
Return values
None

Definition at line 1501 of file gr55xx_ll_qspi.h.

◆ ll_qspi_enable_ss_toggle()

__STATIC_INLINE void ll_qspi_enable_ss_toggle ( qspi_regs_t *  QSPIx)

Enable slave select toggle.

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

Register|BitsName --------|-------- CTRL0 | SSTEN

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 812 of file gr55xx_ll_qspi.h.

◆ ll_qspi_enable_test_mode()

__STATIC_INLINE void ll_qspi_enable_test_mode ( qspi_regs_t *  QSPIx)

Enable SPI test mode.

Register|BitsName --------|-------- CTRL0 | SRL

Parameters
QSPIxQSPI instance
Return values
None

Definition at line 1052 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_baud_rate_prescaler()

__STATIC_INLINE uint32_t ll_qspi_get_baud_rate_prescaler ( qspi_regs_t *  QSPIx)

Get baud rate prescaler.

Register|BitsName --------|-------- BAUD | SCKDIV

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one even value between 2 and 65534.

Definition at line 1571 of file gr55xx_ll_qspi.h.

Referenced by ll_qspi_get_cs_release_delay(), ll_qspi_get_cs_setup_delay(), ll_qspi_set_cs_release_delay(), and ll_qspi_set_cs_setup_delay().

◆ ll_qspi_get_clock_phase()

__STATIC_INLINE uint32_t ll_qspi_get_clock_phase ( qspi_regs_t *  QSPIx)

Get clock phase.

Register|BitsName --------|-------- CTRL0 | SCPHA

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1240 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_clock_polarity()

__STATIC_INLINE uint32_t ll_qspi_get_clock_polarity ( qspi_regs_t *  QSPIx)

Get clock polarity.

Register|BitsName --------|-------- CTRL0 | SCPOL

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1203 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_control_frame_size()

__STATIC_INLINE uint32_t ll_qspi_get_control_frame_size ( qspi_regs_t *  QSPIx)

Get the length of the control word for the Microwire frame format.

Note
This bit should be written only when SPI is disabled (QSPI_EN = 0) for correct operation.

Register|BitsName --------|-------- CTRL0 | CFS

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1037 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_data_size()

◆ ll_qspi_get_frame_format()

__STATIC_INLINE uint32_t ll_qspi_get_frame_format ( qspi_regs_t *  QSPIx)

Get data frame format for transmitting/receiving the data.

Note
This bit should be written only when SPI is disabled (QSPI_EN = 0) for correct operation.

Register|BitsName --------|-------- CTRL0 | SPIFRF

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 883 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_id_code()

__STATIC_INLINE uint32_t ll_qspi_get_id_code ( qspi_regs_t *  QSPIx)

Get ID code.

Register|BitsName --------|-------- IDCODE | ID

Parameters
QSPIxQSPI instance
Return values
Returnedvalue is const.

Definition at line 1709 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_micro_transfer_direction()

__STATIC_INLINE uint32_t ll_qspi_get_micro_transfer_direction ( qspi_regs_t *  QSPIx)

Get transfer direction mode in Microwire mode.

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

Register|BitsName --------|-------- MWC | MDD

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1445 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_micro_transfer_mode()

__STATIC_INLINE uint32_t ll_qspi_get_micro_transfer_mode ( qspi_regs_t *  QSPIx)

Get transfer mode in Microwire mode.

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

Register|BitsName --------|-------- MWC | MWMOD

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1482 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_receive_size()

__STATIC_INLINE uint32_t ll_qspi_get_receive_size ( qspi_regs_t *  QSPIx)

Get the number of data frames to be continuously received.

Note
These bits should not be changed when communication is ongoing. This bits are effect when TMOD = 2b10 or 2b11. This bits are not effect in SPIS.

Register|BitsName --------|-------- CTRL1 | NDF

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ 65535

Definition at line 1317 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_rx_fifo_level()

__STATIC_INLINE uint32_t ll_qspi_get_rx_fifo_level ( qspi_regs_t *  QSPIx)

Get FIFO reception Level.

Register|BitsName --------|-------- RXFL | RXTFL

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ FIFO_DEPTH

Definition at line 1694 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_rx_fifo_threshold()

__STATIC_INLINE uint32_t ll_qspi_get_rx_fifo_threshold ( qspi_regs_t *  QSPIx)

Get threshold of RXFIFO that triggers an RXNE event.

Register|BitsName --------|-------- RXFTL | RFT

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ (FIFO_DEPTH - 1)

Definition at line 1664 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_standard()

__STATIC_INLINE uint32_t ll_qspi_get_standard ( qspi_regs_t *  QSPIx)

Get serial protocol used.

Register|BitsName --------|-------- CTRL0 | FRF

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1278 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_transfer_direction()

__STATIC_INLINE uint32_t ll_qspi_get_transfer_direction ( qspi_regs_t *  QSPIx)

Get transfer direction mode.

Register|BitsName --------|-------- CTRL0 | TMOD

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values:

Definition at line 1166 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_tx_fifo_level()

__STATIC_INLINE uint32_t ll_qspi_get_tx_fifo_level ( qspi_regs_t *  QSPIx)

Get FIFO Transmission Level.

Register|BitsName --------|-------- TXFL | TXTFL

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ FIFO_DEPTH

Definition at line 1679 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_tx_fifo_threshold()

__STATIC_INLINE uint32_t ll_qspi_get_tx_fifo_threshold ( qspi_regs_t *  QSPIx)

Get threshold of TXFIFO that triggers an TXE event.

Register|BitsName --------|-------- TXFTL | TFT

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ (FIFO_DEPTH - 1)

Definition at line 1633 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_tx_start_fifo_threshold()

__STATIC_INLINE uint32_t ll_qspi_get_tx_start_fifo_threshold ( qspi_regs_t *  QSPIx)

Get threshold of TX transfer start.

Register|BitsName --------|-------- TXFTL | TXFTHR

Parameters
QSPIxQSPI instance
Return values
Returnedvalue can be one of the following values: 0 ~ (FIFO_DEPTH - 1)

Definition at line 1602 of file gr55xx_ll_qspi.h.

◆ ll_qspi_get_version()

__STATIC_INLINE uint32_t ll_qspi_get_version ( qspi_regs_t *  QSPIx)

Get IP version.

Register|BitsName --------|-------- COMP | VERSION

Parameters
QSPIxQSPI instance
Return values
Returnedvalue is const.

Definition at line 1724 of file gr55xx_ll_qspi.h.

◆ ll_qspi_is_enabled()

__STATIC_INLINE uint32_t ll_qspi_is_enabled ( qspi_regs_t *  QSPIx)

Check if SPI peripheral is enabled.

Register|BitsName --------|-------- QSPI_EN | EN

Parameters
QSPIxQSPI instance
Return values
Stateof bit (1 or 0).

Definition at line 1363 of file gr55xx_ll_qspi.h.

◆ ll_qspi_is_enabled_micro_handshake()

__STATIC_INLINE uint32_t ll_qspi_is_enabled_micro_handshake ( qspi_regs_t *  QSPIx)

Check if Handshake in Microwire mode is enabled.

Register|BitsName --------|-------- MWC | MHS

Parameters
QSPIxQSPI instance
Return values
Stateof bit (1 or 0).

Definition at line 1408 of file gr55xx_ll_qspi.h.

◆ ll_qspi_is_enabled_slave_out()

__STATIC_INLINE uint32_t ll_qspi_is_enabled_slave_out ( qspi_regs_t *  QSPIx)

Check if slave output is enabled.

Register|BitsName --------|-------- CTRL0 | SLVOE

Parameters
QSPIxQSPI instance
Return values
Stateof bit (1 or 0).

Definition at line 1127 of file gr55xx_ll_qspi.h.

◆ ll_qspi_is_enabled_ss()

__STATIC_INLINE uint32_t ll_qspi_is_enabled_ss ( qspi_regs_t *  QSPIx,
uint32_t  ss 
)

Check if slave select is enabled.

Register|BitsName --------|-------- SE | SLAVE1 SE | SLAVE0

Parameters
QSPIxQSPI instance
ssThis parameter can be one of the following values:
Return values
Stateof bit (1 or 0).

Definition at line 1539 of file gr55xx_ll_qspi.h.

◆ ll_qspi_is_enabled_ss_toggle()

__STATIC_INLINE uint32_t ll_qspi_is_enabled_ss_toggle ( qspi_regs_t *  QSPIx)

Check if slave select toggle is enabled.

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

Register|BitsName --------|-------- CTRL0 | SSTEN

Parameters
QSPIxQSPI instance
Return values
Stateof bit (1 or 0).

Definition at line 844 of file gr55xx_ll_qspi.h.

◆ ll_qspi_is_enabled_test_mode()

__STATIC_INLINE uint32_t ll_qspi_is_enabled_test_mode ( qspi_regs_t *  QSPIx)

Check if SPI test mode is enabled.

Register|BitsName --------|-------- CTRL0 | SRL

Parameters
QSPIxQSPI instance
Return values
Stateof bit (1 or 0).

Definition at line 1082 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_baud_rate_prescaler()

__STATIC_INLINE void ll_qspi_set_baud_rate_prescaler ( qspi_regs_t *  QSPIx,
uint32_t  baud_rate 
)

Set baud rate prescaler.

Note
These bits should not be changed when communication is ongoing. SPI BaudRate = fPCLK/Prescaler.

Register|BitsName --------|-------- BAUD | SCKDIV

Parameters
QSPIxQSPI instance
baud_rateThis parameter can be one even value between 2 and 65534, if the value is 0, the SCLK is disable.
Return values
None

Definition at line 1556 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_clock_phase()

__STATIC_INLINE void ll_qspi_set_clock_phase ( qspi_regs_t *  QSPIx,
uint32_t  clock_phase 
)

Set clock phase.

Note
This bit should not be changed when communication is ongoing. This bit is not used in SPI TI mode.

Register|BitsName --------|-------- CTRL0 | SCPHA

Parameters
QSPIxQSPI instance
clock_phaseThis parameter can be one of the following values:
Return values
None

Definition at line 1223 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_clock_polarity()

__STATIC_INLINE void ll_qspi_set_clock_polarity ( qspi_regs_t *  QSPIx,
uint32_t  clock_polarity 
)

Set clock polarity.

Note
This bit should not be changed when communication is ongoing. This bit is not used in SPI TI mode.

Register|BitsName --------|-------- CTRL0 | SCPOL

Parameters
QSPIxQSPI instance
clock_polarityThis parameter can be one of the following values:
Return values
None

Definition at line 1186 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_control_frame_size()

__STATIC_INLINE void ll_qspi_set_control_frame_size ( qspi_regs_t *  QSPIx,
uint32_t  size 
)

Set the length of the control word for the Microwire frame format.

Note
This bit should be written only when SPI is disabled (QSPI_EN = 0) for correct operation.

Register|BitsName --------|-------- CTRL0 | CFS

Parameters
QSPIxQSPI instance
sizeThis parameter can be one of the following values:
Return values
None

Definition at line 1005 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_data_size()

◆ ll_qspi_set_frame_format()

__STATIC_INLINE void ll_qspi_set_frame_format ( qspi_regs_t *  QSPIx,
uint32_t  frf 
)

Set data frame format for transmitting/receiving the data.

Note
This bit should be written only when QSPI is disabled (QSPI_SSI_EN = 0) for correct operation.

Register|BitsName --------|-------- CTRL0 | SPIFRF

Parameters
QSPIxQSPI instance
frfThis parameter can be one of the following values:
Return values
None

Definition at line 864 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_micro_transfer_direction()

__STATIC_INLINE void ll_qspi_set_micro_transfer_direction ( qspi_regs_t *  QSPIx,
uint32_t  transfer_direction 
)

Set transfer direction mode in Microwire mode.

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

Register|BitsName --------|-------- MWC | MDD

Parameters
QSPIxQSPI instance
transfer_directionThis parameter can be one of the following values:
Return values
None

Definition at line 1427 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_micro_transfer_mode()

__STATIC_INLINE void ll_qspi_set_micro_transfer_mode ( qspi_regs_t *  QSPIx,
uint32_t  transfer_mode 
)

Set transfer mode in Microwire mode.

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

Register|BitsName --------|-------- MWC | MWMOD

Parameters
QSPIxQSPI instance
transfer_modeThis parameter can be one of the following values:
Return values
None

Definition at line 1464 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_receive_size()

__STATIC_INLINE void ll_qspi_set_receive_size ( qspi_regs_t *  QSPIx,
uint32_t  size 
)

Set the number of data frames to be continuously received.

Note
These bits should not be changed when communication is ongoing. This bits are effect when TMOD = 2b10 or 2b11. This bits are not effect in SPIS.

Register|BitsName --------|-------- CTRL1 | NDF

Parameters
QSPIxQSPI instance
sizeThis parameter can be one of the following values: 0 ~ 65535
Return values
None

Definition at line 1297 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_rx_fifo_threshold()

__STATIC_INLINE void ll_qspi_set_rx_fifo_threshold ( qspi_regs_t *  QSPIx,
uint32_t  threshold 
)

Set threshold of RXFIFO that triggers an RXNE event.

Register|BitsName --------|-------- RXFTL | RFT

Parameters
QSPIxQSPI instance
thresholdThis parameter can be one of the following values: 0 ~ (FIFO_DEPTH - 1)
Return values
None

Definition at line 1649 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_standard()

__STATIC_INLINE void ll_qspi_set_standard ( qspi_regs_t *  QSPIx,
uint32_t  standard 
)

Set serial protocol used.

Note
This bit should be written only when SPI is disabled (QSPI_EN = 0) for correct operation.

Register|BitsName --------|-------- CTRL0 | FRF

Parameters
QSPIxQSPI instance
standardThis parameter can be one of the following values:
Return values
None

Definition at line 1260 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_transfer_direction()

__STATIC_INLINE void ll_qspi_set_transfer_direction ( qspi_regs_t *  QSPIx,
uint32_t  transfer_direction 
)

Set transfer direction mode.

Register|BitsName --------|-------- CTRL0 | TMOD

Parameters
QSPIxQSPI instance
transfer_directionThis parameter can be one of the following values:
Return values
None

Definition at line 1147 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_tx_fifo_threshold()

__STATIC_INLINE void ll_qspi_set_tx_fifo_threshold ( qspi_regs_t *  QSPIx,
uint32_t  threshold 
)

Set threshold of TXFIFO that triggers an TXE event.

Register|BitsName --------|-------- TXFTL | TFT

Parameters
QSPIxQSPI instance
thresholdThis parameter can be one of the following values: 0 ~ (FIFO_DEPTH - 1)
Return values
None

Definition at line 1618 of file gr55xx_ll_qspi.h.

◆ ll_qspi_set_tx_start_fifo_threshold()

__STATIC_INLINE void ll_qspi_set_tx_start_fifo_threshold ( qspi_regs_t *  QSPIx,
uint32_t  threshold 
)

Set threshold of TX transfer start.

Register|BitsName --------|-------- TXFTL | TXFTHR

Parameters
QSPIxQSPI instance
thresholdThis parameter can be one of the following values: 0 ~ (FIFO_DEPTH - 1)
Return values
None

Definition at line 1587 of file gr55xx_ll_qspi.h.