Functions | |
__STATIC_INLINE void | ll_dspi_enable (dspi_regs_t *DSPIx) |
Enable DSPI peripheral. More... | |
__STATIC_INLINE void | ll_dspi_disable (dspi_regs_t *DSPIx) |
Disable DSPI peripheral. More... | |
__STATIC_INLINE uint32_t | ll_dspi_is_enabled (dspi_regs_t *DSPIx) |
Check if DSPI peripheral is enabled. More... | |
__STATIC_INLINE void | ll_dspi_set_clock_polarity (dspi_regs_t *DSPIx, uint32_t clock_polarity) |
Set clock polarity. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_clock_polarity (dspi_regs_t *DSPIx) |
Get clock polarity. More... | |
__STATIC_INLINE void | ll_dspi_set_clock_phase (dspi_regs_t *DSPIx, uint32_t clock_phase) |
Set clock phase. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_clock_phase (dspi_regs_t *DSPIx) |
Get clock phase. More... | |
__STATIC_INLINE void | ll_dspi_set_frame_format (dspi_regs_t *DSPIx, uint32_t frf) |
Set data frame format for transmitting/receiving the data. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_frame_format (dspi_regs_t *DSPIx) |
Get data frame format for transmitting/receiving the data. More... | |
__STATIC_INLINE void | ll_dspi_set_data_size (dspi_regs_t *DSPIx, uint32_t size) |
Set frame data size. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_data_size (dspi_regs_t *DSPIx) |
Get frame data size. More... | |
__STATIC_INLINE void | ll_dspi_set_baud_rate (dspi_regs_t *DSPIx, uint32_t baud_rate) |
Set baud rate. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_baud_rate (dspi_regs_t *DSPIx) |
Get baud rate. More... | |
__STATIC_INLINE void | ll_dspi_set_bidirectional_mode (dspi_regs_t *DSPIx, uint32_t bid_mode) |
Set bidirectional data mode enable. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_bidirectional_mode (dspi_regs_t *DSPIx) |
Get baud rate. More... | |
__STATIC_INLINE void | ll_dspi_set_transfer_direction_bidirectional (dspi_regs_t *DSPIx, uint32_t transfer_direction) |
Set transfer direction mode in bidirectional mode. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_transfer_direction_bidirectional (dspi_regs_t *DSPIx) |
Get transfer direction mode in bidirectional mode. More... | |
__STATIC_INLINE void | ll_dspi_set_transfer_direction_unbidirectional (dspi_regs_t *DSPIx, uint32_t transfer_direction) |
Set transfer direction mode in unbidirectional mode. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_transfer_direction_unbidirectional (dspi_regs_t *DSPIx) |
Get transfer direction mode in bidirectional mode. More... | |
__STATIC_INLINE void | ll_dspi_set_rx_fifo_threshold (dspi_regs_t *DSPIx, uint32_t threshold) |
Set threshold of TXFIFO that triggers an TXE event. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_rx_fifo_threshold (dspi_regs_t *DSPIx) |
Get threshold of TXFIFO that triggers an TXE event. More... | |
__STATIC_INLINE void | ll_dspi_flush_fifo (dspi_regs_t *DSPIx) |
FIFO Pointer Reset. More... | |
__STATIC_INLINE void | ll_dspi_master_select (dspi_regs_t *DSPIx) |
Master selection. More... | |
__STATIC_INLINE void | ll_dspi_set_last_dma_tx_packing (dspi_regs_t *DSPIx, uint32_t bid_mode) |
Last DMA transfer for transmission. More... | |
__STATIC_INLINE void | ll_dspi_set_last_dma_rx_packing (dspi_regs_t *DSPIx, uint32_t bid_mode) |
Last DMA transfer for reception. More... | |
__STATIC_INLINE void | ll_dspi_enable_dma_tx (dspi_regs_t *DSPIx) |
Enable DMA Tx. More... | |
__STATIC_INLINE void | ll_dspi_disable_dma_tx (dspi_regs_t *DSPIx) |
Disable DMA Tx. More... | |
__STATIC_INLINE uint32_t | ll_dspi_is_enabled_dma_tx (dspi_regs_t *DSPIx) |
Check if DMA Tx is enabled. More... | |
__STATIC_INLINE void | ll_dspi_enable_dma_rx (dspi_regs_t *DSPIx) |
Enable DMA Rx. More... | |
__STATIC_INLINE void | ll_dspi_disable_dma_rx (dspi_regs_t *DSPIx) |
Disable DMA Rx. More... | |
__STATIC_INLINE uint32_t | ll_dspi_is_enabled_dma_rx (dspi_regs_t *DSPIx) |
Check if DMA Rx is enabled. More... | |
__STATIC_INLINE void | ll_dspi_set_dcx (dspi_regs_t *DSPIx, uint32_t dcx) |
Value of Data-Versus-Command information. More... | |
__STATIC_INLINE void | ll_dspi_set_mode (dspi_regs_t *DSPIx, uint32_t mode) |
DSPI Protocol Mode. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_mode (dspi_regs_t *DSPIx) |
Get DSPI Protocol Mode. More... | |
__STATIC_INLINE void | ll_dspi_ss_out_enable (dspi_regs_t *DSPIx) |
SS output enable. More... | |
__STATIC_INLINE void | ll_dspi_enable_it (dspi_regs_t *DSPIx, uint32_t mask) |
Enable interrupt. More... | |
__STATIC_INLINE void | ll_dspi_disable_it (dspi_regs_t *DSPIx, uint32_t mask) |
Disable interrupt. More... | |
__STATIC_INLINE uint32_t | ll_dspi_is_enabled_it (dspi_regs_t *DSPIx, uint32_t mask) |
Check if interrupt is enabled. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_status (dspi_regs_t *DSPIx) |
Get DSPI status. More... | |
__STATIC_INLINE uint32_t | ll_dspi_is_active_flag (dspi_regs_t *DSPIx, uint32_t flag) |
Check active flag. More... | |
__STATIC_INLINE uint32_t | ll_dspi_get_it_flag (dspi_regs_t *DSPIx) |
Get DSPI interrupt flags. More... | |
__STATIC_INLINE uint32_t | ll_dspi_is_it_flag (dspi_regs_t *DSPIx, uint32_t flag) |
Check interrupt flag. More... | |
__STATIC_INLINE void ll_dspi_disable | ( | dspi_regs_t * | DSPIx | ) |
Disable DSPI peripheral.
Register|BitsName --------|-------- CTRL1 | EN
DSPIx | DSPI instance |
None |
Definition at line 360 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_disable_dma_rx | ( | dspi_regs_t * | DSPIx | ) |
Disable DMA Rx.
Register|BitsName --------|-------- CTRL2 | RXDMAEN
DSPIx | DSPI instance |
None |
Definition at line 912 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_disable_dma_tx | ( | dspi_regs_t * | DSPIx | ) |
Disable DMA Tx.
Register|BitsName --------|-------- CTRL2 | TXDMAEN
DSPIx | DSPI instance |
None |
Definition at line 867 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_disable_it | ( | dspi_regs_t * | DSPIx, |
uint32_t | mask | ||
) |
Disable interrupt.
Register|BitsName --------|-------- CTRL2 | INTMASK
DSPIx | DSPI instance |
mask | This parameter can be one of the following values: |
None |
Definition at line 1039 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_enable | ( | dspi_regs_t * | DSPIx | ) |
Enable DSPI peripheral.
Register|BitsName --------|-------- CTRL1 | EN
DSPIx | DSPI instance |
None |
Definition at line 344 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_enable_dma_rx | ( | dspi_regs_t * | DSPIx | ) |
Enable DMA Rx.
Register|BitsName --------|-------- CTRL2 | RXDMAEN
DSPIx | DSPI instance |
None |
Definition at line 897 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_enable_dma_tx | ( | dspi_regs_t * | DSPIx | ) |
Enable DMA Tx.
Register|BitsName --------|-------- CTRL2 | TXDMAEN
DSPIx | DSPI instance |
None |
Definition at line 852 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_enable_it | ( | dspi_regs_t * | DSPIx, |
uint32_t | mask | ||
) |
Enable interrupt.
Register|BitsName --------|-------- CTRL2 | INTMASK
DSPIx | DSPI instance |
mask | This parameter can be one of the following values: |
None |
Definition at line 1019 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_flush_fifo | ( | dspi_regs_t * | DSPIx | ) |
FIFO Pointer Reset.
Register|BitsName --------|-------- DSPI | FPRST
DSPIx | DSPI instance |
Definition at line 780 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_baud_rate | ( | dspi_regs_t * | DSPIx | ) |
Get baud rate.
Register|BitsName --------|-------- CTRL1 | BR
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 622 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_bidirectional_mode | ( | dspi_regs_t * | DSPIx | ) |
Get baud rate.
Register|BitsName --------|-------- CTRL1 | BIDIMODE
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 657 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_clock_phase | ( | dspi_regs_t * | DSPIx | ) |
Get clock phase.
Register|BitsName --------|-------- CTRL1 | SCPHA
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 448 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_clock_polarity | ( | dspi_regs_t * | DSPIx | ) |
Get clock polarity.
Register|BitsName --------|-------- CTRL1 | SCPOL
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 412 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_data_size | ( | dspi_regs_t * | DSPIx | ) |
Get frame data size.
Register|BitsName --------|-------- CTRL2 | DS
DSPIx | DSPI instance |
Definition at line 574 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_frame_format | ( | dspi_regs_t * | DSPIx | ) |
Get data frame format for transmitting/receiving the data.
Register|BitsName --------|-------- CTRL1 | LSBFIRST
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 485 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_it_flag | ( | dspi_regs_t * | DSPIx | ) |
Get DSPI interrupt flags.
Register|BitsName --------|-------- INTSTAT | INTSTAT
DSPIx | DSPI instance |
Returned | value can be one or combination of the following values: |
Definition at line 1127 of file gr55xx_ll_dspi.h.
References LL_DSPI_SR_ALL.
__STATIC_INLINE uint32_t ll_dspi_get_mode | ( | dspi_regs_t * | DSPIx | ) |
Get DSPI Protocol Mode.
Register|BitsName --------|-------- MODE | SPIMODE
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 984 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_rx_fifo_threshold | ( | dspi_regs_t * | DSPIx | ) |
Get threshold of TXFIFO that triggers an TXE event.
Register|BitsName --------|-------- CTRL1 | FRXTH
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 766 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_status | ( | dspi_regs_t * | DSPIx | ) |
Get DSPI status.
Register|BitsName --------|-------- STAT | STAT
DSPIx | DSPI instance |
Returned | value can be one or combination of the following values: |
Definition at line 1079 of file gr55xx_ll_dspi.h.
References LL_DSPI_SR_ALL.
__STATIC_INLINE uint32_t ll_dspi_get_transfer_direction_bidirectional | ( | dspi_regs_t * | DSPIx | ) |
Get transfer direction mode in bidirectional mode.
Register|BitsName --------|-------- CTRL1 | BIDIOE
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 692 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_get_transfer_direction_unbidirectional | ( | dspi_regs_t * | DSPIx | ) |
Get transfer direction mode in bidirectional mode.
Register|BitsName --------|-------- CTRL1 | RXONLY
DSPIx | DSPI instance |
Returned | value can be one of the following values: |
Definition at line 727 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_is_active_flag | ( | dspi_regs_t * | DSPIx, |
uint32_t | flag | ||
) |
Check active flag.
Register|BitsName --------|-------- STAT | FFE STAT | BUSY STAT | OVR STAT | MODF STAT | TFE STAT | TFNF
DSPIx | DSPI instance |
flag | This parameter can be one of the following values: |
State | of bit (1 or 0). |
Definition at line 1106 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_is_enabled | ( | dspi_regs_t * | DSPIx | ) |
Check if DSPI peripheral is enabled.
Register|BitsName --------|-------- CTRL1 | EN
DSPIx | DSPI instance |
State | of bit (1 or 0). |
Definition at line 375 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_is_enabled_dma_rx | ( | dspi_regs_t * | DSPIx | ) |
Check if DMA Rx is enabled.
Register|BitsName --------|-------- CTRL2 | RXDMAEN
DSPIx | DSPI instance |
State | of bit (1 or 0). |
Definition at line 927 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_is_enabled_dma_tx | ( | dspi_regs_t * | DSPIx | ) |
Check if DMA Tx is enabled.
Register|BitsName --------|-------- CTRL2 | TXDMAEN
DSPIx | DSPI instance |
State | of bit (1 or 0). |
Definition at line 882 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_is_enabled_it | ( | dspi_regs_t * | DSPIx, |
uint32_t | mask | ||
) |
Check if interrupt is enabled.
Register|BitsName --------|-------- CTRL2 | INTMASK
DSPIx | DSPI instance |
mask | This parameter can be one of the following values: |
State | of bit (1 or 0). |
Definition at line 1058 of file gr55xx_ll_dspi.h.
__STATIC_INLINE uint32_t ll_dspi_is_it_flag | ( | dspi_regs_t * | DSPIx, |
uint32_t | flag | ||
) |
Check interrupt flag.
Register|BitsName --------|-------- INTSTAT | FFE INTSTAT | BUSY INTSTAT | OVR INTSTAT | MODF INTSTAT | TFE INTSTAT | RFNE
DSPIx | DSPI instance |
flag | This parameter can be one of the following values: |
State | of bit (1 or 0). |
Definition at line 1154 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_master_select | ( | dspi_regs_t * | DSPIx | ) |
Master selection.
Register|BitsName --------|-------- DSPI | MSTR
DSPIx | DSPI instance |
Definition at line 795 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_baud_rate | ( | dspi_regs_t * | DSPIx, |
uint32_t | baud_rate | ||
) |
Set baud rate.
Register|BitsName --------|-------- CTRL1 | BR
DSPIx | DSPI instance |
baud_rate | This parameter can be one of the following values: |
None |
Definition at line 599 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_bidirectional_mode | ( | dspi_regs_t * | DSPIx, |
uint32_t | bid_mode | ||
) |
Set bidirectional data mode enable.
Register|BitsName --------|-------- CTRL1 | BIDIMODE
DSPIx | DSPI instance |
bid_mode | This parameter can be one of the following values: |
None |
Definition at line 640 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_clock_phase | ( | dspi_regs_t * | DSPIx, |
uint32_t | clock_phase | ||
) |
Set clock phase.
Register|BitsName --------|-------- CTRL1 | SCPHA
DSPIx | DSPI instance |
clock_phase | This parameter can be one of the following values: |
None |
Definition at line 431 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_clock_polarity | ( | dspi_regs_t * | DSPIx, |
uint32_t | clock_polarity | ||
) |
Set clock polarity.
Register|BitsName --------|-------- CTRL1 | SCPOL
DSPIx | DSPI instance |
clock_polarity | This parameter can be one of the following values: |
None |
Definition at line 395 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_data_size | ( | dspi_regs_t * | DSPIx, |
uint32_t | size | ||
) |
Set frame data size.
Register|BitsName --------|-------- CTRL2 | DS
None |
Definition at line 530 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_dcx | ( | dspi_regs_t * | DSPIx, |
uint32_t | dcx | ||
) |
Value of Data-Versus-Command information.
Register|BitsName --------|-------- MODE | DCX
DSPIx | DSPI instance |
dcx | This parameter can be one of the following values: |
None |
Definition at line 945 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_frame_format | ( | dspi_regs_t * | DSPIx, |
uint32_t | frf | ||
) |
Set data frame format for transmitting/receiving the data.
Register|BitsName --------|-------- CTRL1 | LSBFIRST
DSPIx | DSPI instance |
frf | This parameter can be one of the following values: |
None |
Definition at line 467 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_last_dma_rx_packing | ( | dspi_regs_t * | DSPIx, |
uint32_t | bid_mode | ||
) |
Last DMA transfer for reception.
Register|BitsName --------|-------- CTRL2 | LDMA_RX
DSPIx | DSPI instance |
bid_mode | This parameter can be one of the following values: |
None |
Definition at line 837 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_last_dma_tx_packing | ( | dspi_regs_t * | DSPIx, |
uint32_t | bid_mode | ||
) |
Last DMA transfer for transmission.
Register|BitsName --------|-------- CTRL2 | LDMA_TX
DSPIx | DSPI instance |
bid_mode | This parameter can be one of the following values: |
None |
Definition at line 816 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_mode | ( | dspi_regs_t * | DSPIx, |
uint32_t | mode | ||
) |
DSPI Protocol Mode.
Register|BitsName --------|-------- MODE | SPIMODE
DSPIx | DSPI instance |
mode | This parameter can be one of the following values: |
None |
Definition at line 965 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_rx_fifo_threshold | ( | dspi_regs_t * | DSPIx, |
uint32_t | threshold | ||
) |
Set threshold of TXFIFO that triggers an TXE event.
Register|BitsName --------|-------- CTRL1 | FRXTH
DSPIx | DSPI instance |
threshold | This parameter can be one of the following values: |
None |
Definition at line 747 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_transfer_direction_bidirectional | ( | dspi_regs_t * | DSPIx, |
uint32_t | transfer_direction | ||
) |
Set transfer direction mode in bidirectional mode.
Register|BitsName --------|-------- CTRL1 | BIDIOE
DSPIx | DSPI instance |
transfer_direction | This parameter can be one of the following values: |
None |
Definition at line 675 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_set_transfer_direction_unbidirectional | ( | dspi_regs_t * | DSPIx, |
uint32_t | transfer_direction | ||
) |
Set transfer direction mode in unbidirectional mode.
Register|BitsName --------|-------- CTRL1 | RXONLY
DSPIx | DSPI instance |
transfer_direction | This parameter can be one of the following values: |
None |
Definition at line 710 of file gr55xx_ll_dspi.h.
__STATIC_INLINE void ll_dspi_ss_out_enable | ( | dspi_regs_t * | DSPIx | ) |
SS output enable.
Register|BitsName --------|-------- CTRL2 | SSOE
DSPIx | DSPI instance |
None |
Definition at line 999 of file gr55xx_ll_dspi.h.