Collaboration diagram for Configuration functions:Functions | |
| __STATIC_INLINE void | ll_spi_enable_ss_toggle (spi_regs_t *SPIx) |
| Enable slave select toggle. More... | |
| __STATIC_INLINE void | ll_spi_disable_ss_toggle (spi_regs_t *SPIx) |
| Disable slave select toggle. More... | |
| __STATIC_INLINE uint32_t | ll_spi_is_enabled_ss_toggle (spi_regs_t *SPIx) |
| Check if slave select toggle is enabled. More... | |
| __STATIC_INLINE void | ll_spi_set_data_size (spi_regs_t *SPIx, uint32_t size) |
| Set frame data size. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_data_size (spi_regs_t *SPIx) |
| Get frame data size. More... | |
| __STATIC_INLINE void | ll_spi_set_control_frame_size (spi_regs_t *SPIx, uint32_t size) |
| Set the length of the control word for the Microwire frame format. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_control_frame_size (spi_regs_t *SPIx) |
| Get the length of the control word for the Microwire frame format. More... | |
| __STATIC_INLINE void | ll_spi_enable_test_mode (spi_regs_t *SPIx) |
| Enable SPI test mode. More... | |
| __STATIC_INLINE void | ll_spi_disable_test_mode (spi_regs_t *SPIx) |
| Disable SPI test mode. More... | |
| __STATIC_INLINE uint32_t | ll_spi_is_enabled_test_mode (spi_regs_t *SPIx) |
| Check if SPI test mode is enabled. More... | |
| __STATIC_INLINE void | ll_spi_enable_slave_out (spi_regs_t *SPIx) |
| Enable slave output. More... | |
| __STATIC_INLINE void | ll_spi_disable_salve_out (spi_regs_t *SPIx) |
| Disable slave output. More... | |
| __STATIC_INLINE uint32_t | ll_spi_is_enabled_slave_out (spi_regs_t *SPIx) |
| Check if slave output is enabled. More... | |
| __STATIC_INLINE void | ll_spi_set_transfer_direction (spi_regs_t *SPIx, uint32_t transfer_direction) |
| Set transfer direction mode. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_transfer_direction (spi_regs_t *SPIx) |
| Get transfer direction mode. More... | |
| __STATIC_INLINE void | ll_spi_set_clock_polarity (spi_regs_t *SPIx, uint32_t clock_polarity) |
| Set clock polarity. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_clock_polarity (spi_regs_t *SPIx) |
| Get clock polarity. More... | |
| __STATIC_INLINE void | ll_spi_set_clock_phase (spi_regs_t *SPIx, uint32_t clock_phase) |
| Set clock phase. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_clock_phase (spi_regs_t *SPIx) |
| Get clock phase. More... | |
| __STATIC_INLINE void | ll_spi_set_standard (spi_regs_t *SPIx, uint32_t standard) |
| Set serial protocol used. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_standard (spi_regs_t *SPIx) |
| Get serial protocol used. More... | |
| __STATIC_INLINE void | ll_spi_set_receive_size (spi_regs_t *SPIx, uint32_t size) |
| Set the number of data frames to be continuously received. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_receive_size (spi_regs_t *SPIx) |
| Get the number of data frames to be continuously received. More... | |
| __STATIC_INLINE void | ll_spi_enable (spi_regs_t *SPIx) |
| Enable SPI peripheral. More... | |
| __STATIC_INLINE void | ll_spi_disable (spi_regs_t *SPIx) |
| Disable SPI peripheral. More... | |
| __STATIC_INLINE uint32_t | ll_spi_is_enabled (spi_regs_t *SPIx) |
| Check if SPI peripheral is enabled. More... | |
| __STATIC_INLINE void | ll_spi_enable_micro_handshake (spi_regs_t *SPIx) |
| Enable Handshake in Microwire mode. More... | |
| __STATIC_INLINE void | ll_spi_disable_micro_handshake (spi_regs_t *SPIx) |
| Disable Handshake in Microwire mode. More... | |
| __STATIC_INLINE uint32_t | ll_spi_is_enabled_micro_handshake (spi_regs_t *SPIx) |
| Check if Handshake in Microwire mode is enabled. More... | |
| __STATIC_INLINE void | ll_spi_set_micro_transfer_direction (spi_regs_t *SPIx, uint32_t transfer_direction) |
| Set transfer direction mode in Microwire mode. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_micro_transfer_direction (spi_regs_t *SPIx) |
| Get transfer direction mode in Microwire mode. More... | |
| __STATIC_INLINE void | ll_spi_set_micro_transfer_mode (spi_regs_t *SPIx, uint32_t transfer_mode) |
| Set transfer mode in Microwire mode. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_micro_transfer_mode (spi_regs_t *SPIx) |
| Get transfer mode in Microwire mode. More... | |
| __STATIC_INLINE void | ll_spi_enable_ss (spi_regs_t *SPIx, uint32_t ss) |
| Enable slave select. More... | |
| __STATIC_INLINE void | ll_spi_disable_ss (spi_regs_t *SPIx, uint32_t ss) |
| Disable slave select. More... | |
| __STATIC_INLINE uint32_t | ll_spi_is_enabled_ss (spi_regs_t *SPIx, uint32_t ss) |
| Check if slave select is enabled. More... | |
| __STATIC_INLINE void | ll_spi_set_baud_rate_prescaler (spi_regs_t *SPIx, uint32_t baud_rate) |
| Set baud rate prescaler. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_baud_rate_prescaler (spi_regs_t *SPIx) |
| Get baud rate prescaler. More... | |
| __STATIC_INLINE void | ll_spi_set_tx_fifo_threshold (spi_regs_t *SPIx, uint32_t threshold) |
| Set threshold of TXFIFO that triggers an TXE event. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_tx_fifo_threshold (spi_regs_t *SPIx) |
| Get threshold of TXFIFO that triggers an TXE event. More... | |
| __STATIC_INLINE void | ll_spi_set_rx_fifo_threshold (spi_regs_t *SPIx, uint32_t threshold) |
| Set threshold of RXFIFO that triggers an RXNE event. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_rx_fifo_threshold (spi_regs_t *SPIx) |
| Get threshold of RXFIFO that triggers an RXNE event. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_tx_fifo_level (spi_regs_t *SPIx) |
| Get FIFO Transmission Level. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_rx_fifo_level (spi_regs_t *SPIx) |
| Get FIFO reception Level. More... | |
| __STATIC_INLINE void ll_spi_disable | ( | spi_regs_t * | SPIx | ) |
Disable SPI peripheral.
| Register | BitsName |
|---|---|
| SSI_EN | EN |
| SPIx | SPI instance |
| None |
Definition at line 903 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_disable_micro_handshake | ( | spi_regs_t * | SPIx | ) |
Disable Handshake in Microwire mode.
| Register | BitsName |
|---|---|
| MWC | MHS |
| SPIx | SPI instance |
| None |
Definition at line 948 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_disable_salve_out | ( | spi_regs_t * | SPIx | ) |
Disable slave output.
| Register | BitsName |
|---|---|
| CTRL0 | SLVOE |
| SPIx | SPI instance |
| None |
Definition at line 669 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_disable_ss | ( | spi_regs_t * | SPIx, |
| uint32_t | ss | ||
| ) |
Disable slave select.
| Register | BitsName |
|---|---|
| SE | SLAVE1 |
| SE | SLAVE0 |
| SPIx | SPI instance |
| ss | This parameter can be one of the following values: |
| None |
Definition at line 1075 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_disable_ss_toggle | ( | spi_regs_t * | SPIx | ) |
Disable slave select toggle.
| Register | BitsName |
|---|---|
| CTRL0 | SSTEN |
| SPIx | SPI instance |
| None |
Definition at line 424 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_disable_test_mode | ( | spi_regs_t * | SPIx | ) |
Disable SPI test mode.
| Register | BitsName |
|---|---|
| CTRL0 | SRL |
| SPIx | SPI instance |
| None |
Definition at line 624 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_enable | ( | spi_regs_t * | SPIx | ) |
Enable SPI peripheral.
| Register | BitsName |
|---|---|
| SSI_EN | EN |
| SPIx | SPI instance |
| None |
Definition at line 887 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_enable_micro_handshake | ( | spi_regs_t * | SPIx | ) |
Enable Handshake in Microwire mode.
| Register | BitsName |
|---|---|
| MWC | MHS |
| SPIx | SPI instance |
| None |
Definition at line 933 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_enable_slave_out | ( | spi_regs_t * | SPIx | ) |
Enable slave output.
| Register | BitsName |
|---|---|
| CTRL0 | SLVOE |
| SPIx | SPI instance |
| None |
Definition at line 654 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_enable_ss | ( | spi_regs_t * | SPIx, |
| uint32_t | ss | ||
| ) |
Enable slave select.
| Register | BitsName |
|---|---|
| SE | SLAVE1 |
| SE | SLAVE0 |
| SPIx | SPI instance |
| ss | This parameter can be one of the following values: |
| None |
Definition at line 1056 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_enable_ss_toggle | ( | spi_regs_t * | SPIx | ) |
Enable slave select toggle.
| Register | BitsName |
|---|---|
| CTRL0 | SSTEN |
| SPIx | SPI instance |
| None |
Definition at line 408 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_enable_test_mode | ( | spi_regs_t * | SPIx | ) |
Enable SPI test mode.
| Register | BitsName |
|---|---|
| CTRL0 | SRL |
| SPIx | SPI instance |
| None |
Definition at line 609 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_baud_rate_prescaler | ( | spi_regs_t * | SPIx | ) |
Get baud rate prescaler.
| Register | BitsName |
|---|---|
| BAUD | SCKDIV |
| SPIx | SPI instance |
| Returned | value can be one even value between 2 and 65534. |
Definition at line 1126 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_clock_phase | ( | spi_regs_t * | SPIx | ) |
Get clock phase.
| Register | BitsName |
|---|---|
| CTRL0 | SCPHA |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
Definition at line 797 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_clock_polarity | ( | spi_regs_t * | SPIx | ) |
Get clock polarity.
| Register | BitsName |
|---|---|
| CTRL0 | SCPOL |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
Definition at line 760 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_control_frame_size | ( | spi_regs_t * | SPIx | ) |
Get the length of the control word for the Microwire frame format.
| Register | BitsName |
|---|---|
| CTRL0 | CFS |
| SPIx | SPI instance |
Definition at line 594 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_data_size | ( | spi_regs_t * | SPIx | ) |
Get frame data size.
| Register | BitsName |
|---|---|
| CTRL0 | DFS32 |
| SPIx | SPI instance |
Definition at line 529 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_micro_transfer_direction | ( | spi_regs_t * | SPIx | ) |
Get transfer direction mode in Microwire mode.
| Register | BitsName |
|---|---|
| MWC | MDD |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
Definition at line 1000 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_micro_transfer_mode | ( | spi_regs_t * | SPIx | ) |
Get transfer mode in Microwire mode.
| Register | BitsName |
|---|---|
| MWC | MWMOD |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
Definition at line 1037 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_receive_size | ( | spi_regs_t * | SPIx | ) |
Get the number of data frames to be continuously received.
| Register | BitsName |
|---|---|
| CTRL1 | NDF |
| SPIx | SPI instance |
| Returned | value can be one of the following values: 0 ~ 65535 |
Definition at line 872 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_rx_fifo_level | ( | spi_regs_t * | SPIx | ) |
Get FIFO reception Level.
| Register | BitsName |
|---|---|
| RXFL | RXTFL |
| SPIx | SPI instance |
| Returned | value can be one of the following values: 0 ~ LL_SPI_x_FIFO_DEPTH |
Definition at line 1218 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_rx_fifo_threshold | ( | spi_regs_t * | SPIx | ) |
Get threshold of RXFIFO that triggers an RXNE event.
| Register | BitsName |
|---|---|
| RXFTL | RFT |
| SPIx | SPI instance |
| Returned | value can be one of the following values: 0 ~ (LL_SPI_x_FIFO_DEPTH - 1) |
Definition at line 1188 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_standard | ( | spi_regs_t * | SPIx | ) |
Get serial protocol used.
| Register | BitsName |
|---|---|
| CTRL0 | FRF |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
Definition at line 835 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_transfer_direction | ( | spi_regs_t * | SPIx | ) |
Get transfer direction mode.
| Register | BitsName |
|---|---|
| CTRL0 | TMOD |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
Definition at line 723 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_tx_fifo_level | ( | spi_regs_t * | SPIx | ) |
Get FIFO Transmission Level.
| Register | BitsName |
|---|---|
| TXFL | TXTFL |
| SPIx | SPI instance |
| Returned | value can be one of the following values: 0 ~ LL_SPI_x_FIFO_DEPTH |
Definition at line 1203 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_get_tx_fifo_threshold | ( | spi_regs_t * | SPIx | ) |
Get threshold of TXFIFO that triggers an TXE event.
| Register | BitsName |
|---|---|
| TXFTL | TFT |
| SPIx | SPI instance |
| Returned | value can be one of the following values: 0 ~ (LL_SPI_x_FIFO_DEPTH - 1) |
Definition at line 1157 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_is_enabled | ( | spi_regs_t * | SPIx | ) |
Check if SPI peripheral is enabled.
| Register | BitsName |
|---|---|
| SSI_EN | EN |
| SPIx | SPI instance |
| State | of bit (1 or 0). |
Definition at line 918 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_is_enabled_micro_handshake | ( | spi_regs_t * | SPIx | ) |
Check if Handshake in Microwire mode is enabled.
| Register | BitsName |
|---|---|
| MWC | MHS |
| SPIx | SPI instance |
| State | of bit (1 or 0). |
Definition at line 963 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_is_enabled_slave_out | ( | spi_regs_t * | SPIx | ) |
Check if slave output is enabled.
| Register | BitsName |
|---|---|
| CTRL0 | SLVOE |
| SPIx | SPI instance |
| State | of bit (1 or 0). |
Definition at line 684 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_is_enabled_ss | ( | spi_regs_t * | SPIx, |
| uint32_t | ss | ||
| ) |
Check if slave select is enabled.
| Register | BitsName |
|---|---|
| SE | SLAVE1 |
| SE | SLAVE0 |
| SPIx | SPI instance |
| ss | This parameter can be one of the following values: |
| State | of bit (1 or 0). |
Definition at line 1094 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_is_enabled_ss_toggle | ( | spi_regs_t * | SPIx | ) |
Check if slave select toggle is enabled.
| Register | BitsName |
|---|---|
| CTRL0 | SSTEN |
| SPIx | SPI instance |
| State | of bit (1 or 0). |
Definition at line 440 of file gr55xx_ll_spi.h.
| __STATIC_INLINE uint32_t ll_spi_is_enabled_test_mode | ( | spi_regs_t * | SPIx | ) |
Check if SPI test mode is enabled.
| Register | BitsName |
|---|---|
| CTRL0 | SRL |
| SPIx | SPI instance |
| State | of bit (1 or 0). |
Definition at line 639 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_baud_rate_prescaler | ( | spi_regs_t * | SPIx, |
| uint32_t | baud_rate | ||
| ) |
Set baud rate prescaler.
| Register | BitsName |
|---|---|
| BAUD | SCKDIV |
| SPIx | SPI instance |
| baud_rate | This parameter can be one even value between 2 and 65534, if the value is 0, the SCLK is disable. |
| None |
Definition at line 1111 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_clock_phase | ( | spi_regs_t * | SPIx, |
| uint32_t | clock_phase | ||
| ) |
Set clock phase.
| Register | BitsName |
|---|---|
| CTRL0 | SCPHA |
| SPIx | SPI instance |
| clock_phase | This parameter can be one of the following values: |
| None |
Definition at line 780 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_clock_polarity | ( | spi_regs_t * | SPIx, |
| uint32_t | clock_polarity | ||
| ) |
Set clock polarity.
| Register | BitsName |
|---|---|
| CTRL0 | SCPOL |
| SPIx | SPI instance |
| clock_polarity | This parameter can be one of the following values: |
| None |
Definition at line 743 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_control_frame_size | ( | spi_regs_t * | SPIx, |
| uint32_t | size | ||
| ) |
Set the length of the control word for the Microwire frame format.
| Register | BitsName |
|---|---|
| CTRL0 | CFS |
| None |
Definition at line 562 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_data_size | ( | spi_regs_t * | SPIx, |
| uint32_t | size | ||
| ) |
Set frame data size.
| Register | BitsName |
|---|---|
| CTRL0 | DFS32 |
| None |
Definition at line 485 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_micro_transfer_direction | ( | spi_regs_t * | SPIx, |
| uint32_t | transfer_direction | ||
| ) |
Set transfer direction mode in Microwire mode.
| Register | BitsName |
|---|---|
| MWC | MDD |
| SPIx | SPI instance |
| transfer_direction | This parameter can be one of the following values: |
| None |
Definition at line 982 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_micro_transfer_mode | ( | spi_regs_t * | SPIx, |
| uint32_t | transfer_mode | ||
| ) |
Set transfer mode in Microwire mode.
| Register | BitsName |
|---|---|
| MWC | MWMOD |
| SPIx | SPI instance |
| transfer_mode | This parameter can be one of the following values: |
| None |
Definition at line 1019 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_receive_size | ( | spi_regs_t * | SPIx, |
| uint32_t | size | ||
| ) |
Set the number of data frames to be continuously received.
| Register | BitsName |
|---|---|
| CTRL1 | NDF |
| SPIx | SPI instance |
| size | This parameter can be one of the following values: 0 ~ 65535 |
| None |
Definition at line 854 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_rx_fifo_threshold | ( | spi_regs_t * | SPIx, |
| uint32_t | threshold | ||
| ) |
Set threshold of RXFIFO that triggers an RXNE event.
| Register | BitsName |
|---|---|
| RXFTL | RFT |
| SPIx | SPI instance |
| threshold | This parameter can be one of the following values: 0 ~ (LL_SPI_x_FIFO_DEPTH - 1) |
| None |
Definition at line 1173 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_standard | ( | spi_regs_t * | SPIx, |
| uint32_t | standard | ||
| ) |
Set serial protocol used.
| Register | BitsName |
|---|---|
| CTRL0 | FRF |
| SPIx | SPI instance |
| standard | This parameter can be one of the following values: |
| None |
Definition at line 817 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_transfer_direction | ( | spi_regs_t * | SPIx, |
| uint32_t | transfer_direction | ||
| ) |
Set transfer direction mode.
| Register | BitsName |
|---|---|
| CTRL0 | TMOD |
| SPIx | SPI instance |
| transfer_direction | This parameter can be one of the following values: |
| None |
Definition at line 704 of file gr55xx_ll_spi.h.
| __STATIC_INLINE void ll_spi_set_tx_fifo_threshold | ( | spi_regs_t * | SPIx, |
| uint32_t | threshold | ||
| ) |
Set threshold of TXFIFO that triggers an TXE event.
| Register | BitsName |
|---|---|
| TXFTL | TFT |
| SPIx | SPI instance |
| threshold | This parameter can be one of the following values: 0 ~ (LL_SPI_x_FIFO_DEPTH - 1) |
| None |
Definition at line 1142 of file gr55xx_ll_spi.h.