Functions | |
| __STATIC_INLINE void | ll_spi_transmit_data8 (ssi_regs_t *SPIx, uint8_t tx_data) |
| Write 8-Bits in the data register. More... | |
| __STATIC_INLINE void | ll_spi_transmit_data16 (ssi_regs_t *SPIx, uint16_t tx_data) |
| Write 16-Bits in the data register. More... | |
| __STATIC_INLINE void | ll_spi_transmit_data32 (ssi_regs_t *SPIx, uint32_t tx_data) |
| Write 32-Bits in the data register. More... | |
| __STATIC_INLINE uint8_t | ll_spi_receive_data8 (ssi_regs_t *SPIx) |
| Read 8-Bits in the data register. More... | |
| __STATIC_INLINE uint16_t | ll_spi_receive_data16 (ssi_regs_t *SPIx) |
| Read 16-Bits in the data register. More... | |
| __STATIC_INLINE uint32_t | ll_spi_receive_data32 (ssi_regs_t *SPIx) |
| Read 32-Bits in the data register. More... | |
| __STATIC_INLINE void | ll_spi_set_rx_sample_delay (ssi_regs_t *SPIx, uint32_t delay) |
| Set Rx sample delay. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_rx_sample_delay (ssi_regs_t *SPIx) |
| Get Rx sample delay. More... | |
| __STATIC_INLINE void | ll_spi_set_wait_cycles (ssi_regs_t *SPIx, uint32_t wait_cycles) |
| Set number of wait cycles in Dual/Quad SPI mode. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_wait_cycles (ssi_regs_t *SPIx) |
| Get number of wait cycles in Dual/Quad SPI mode. More... | |
| __STATIC_INLINE void | ll_spi_set_instruction_size (ssi_regs_t *SPIx, uint32_t size) |
| Set Dual/Quad SPI mode instruction length in bits. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_instruction_size (ssi_regs_t *SPIx) |
| Get Dual/Quad SPI mode instruction length in bits. More... | |
| __STATIC_INLINE void | ll_spi_set_address_size (ssi_regs_t *SPIx, uint32_t size) |
| Set Dual/Quad SPI mode address length in bits. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_address_size (ssi_regs_t *SPIx) |
| Get Dual/Quad SPI mode address length in bits. More... | |
| __STATIC_INLINE void | ll_spi_set_add_inst_transfer_format (ssi_regs_t *SPIx, uint32_t format) |
| Set Dual/Quad SPI mode address and instruction transfer format. More... | |
| __STATIC_INLINE uint32_t | ll_spi_get_addr_inst_transfer_format (ssi_regs_t *SPIx) |
| Get Dual/Quad SPI mode address and instruction transfer format. More... | |
| __STATIC_INLINE uint32_t ll_spi_get_addr_inst_transfer_format | ( | ssi_regs_t * | SPIx | ) |
Get Dual/Quad SPI mode address and instruction transfer format.
| Register | BitsName |
|---|---|
| SCTRL0 | TRANSTYPE |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
| __STATIC_INLINE uint32_t ll_spi_get_address_size | ( | ssi_regs_t * | SPIx | ) |
Get Dual/Quad SPI mode address length in bits.
| Register | BitsName |
|---|---|
| SCTRL0 | ADDRL |
| SPIx | SPI instance |
| __STATIC_INLINE uint32_t ll_spi_get_instruction_size | ( | ssi_regs_t * | SPIx | ) |
Get Dual/Quad SPI mode instruction length in bits.
| Register | BitsName |
|---|---|
| SCTRL0 | INSTL |
| SPIx | SPI instance |
| Returned | value can be one of the following values: |
| __STATIC_INLINE uint32_t ll_spi_get_rx_sample_delay | ( | ssi_regs_t * | SPIx | ) |
Get Rx sample delay.
| Register | BitsName |
|---|---|
| RX_SAMPLEDLY | RX_SAMPLEDLY |
| SPIx | SPI instance |
| Returned | value can be one of the following values: 0 ~ 256 |
| __STATIC_INLINE uint32_t ll_spi_get_wait_cycles | ( | ssi_regs_t * | SPIx | ) |
Get number of wait cycles in Dual/Quad SPI mode.
| Register | BitsName |
|---|---|
| SCTRL0 | WAITCYCLES |
| SPIx | SPI instance |
| Returned | value can be one of the following values: 0 ~ 31 |
| __STATIC_INLINE uint16_t ll_spi_receive_data16 | ( | ssi_regs_t * | SPIx | ) |
Read 16-Bits in the data register.
| Register | BitsName |
|---|---|
| DATA | DATA |
| SPIx | SPI instance |
| Returned | Value between Min_Data=0x0000 and Max_Data=0xFFFF |
| __STATIC_INLINE uint32_t ll_spi_receive_data32 | ( | ssi_regs_t * | SPIx | ) |
Read 32-Bits in the data register.
| Register | BitsName |
|---|---|
| DATA | DATA |
| SPIx | SPI instance |
| Returned | Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF |
| __STATIC_INLINE uint8_t ll_spi_receive_data8 | ( | ssi_regs_t * | SPIx | ) |
Read 8-Bits in the data register.
| Register | BitsName |
|---|---|
| DATA | DATA |
| SPIx | SPI instance |
| Rerturned | Value between Min_Data=0x00 and Max_Data=0xFF |
| __STATIC_INLINE void ll_spi_set_add_inst_transfer_format | ( | ssi_regs_t * | SPIx, |
| uint32_t | format | ||
| ) |
Set Dual/Quad SPI mode address and instruction transfer format.
| Register | BitsName |
|---|---|
| SCTRL0 | TRANSTYPE |
| SPIx | SPI instance |
| format | This parameter can be one of the following values: |
| None |
| __STATIC_INLINE void ll_spi_set_address_size | ( | ssi_regs_t * | SPIx, |
| uint32_t | size | ||
| ) |
Set Dual/Quad SPI mode address length in bits.
| Register | BitsName |
|---|---|
| SCTRL0 | ADDRL |
| SPIx | SPI instance |
| size | This parameter can be one of the following values:
|
| None |
| __STATIC_INLINE void ll_spi_set_instruction_size | ( | ssi_regs_t * | SPIx, |
| uint32_t | size | ||
| ) |
Set Dual/Quad SPI mode instruction length in bits.
| Register | BitsName |
|---|---|
| SCTRL0 | INSTL |
| SPIx | SPI instance |
| size | This parameter can be one of the following values: |
| None |
| __STATIC_INLINE void ll_spi_set_rx_sample_delay | ( | ssi_regs_t * | SPIx, |
| uint32_t | delay | ||
| ) |
Set Rx sample delay.
| Register | BitsName |
|---|---|
| RX_SAMPLEDLY | RX_SAMPLEDLY |
| SPIx | SPI instance |
| delay | This parameter can be one of the following values: 0 ~ 256 |
| None |
| __STATIC_INLINE void ll_spi_set_wait_cycles | ( | ssi_regs_t * | SPIx, |
| uint32_t | wait_cycles | ||
| ) |
Set number of wait cycles in Dual/Quad SPI mode.
| Register | BitsName |
|---|---|
| SCTRL0 | WAITCYCLES |
| SPIx | SPI instance |
| wait_cycles | This parameter can be one of the following values: 0 ~ 31 |
| None |
| __STATIC_INLINE void ll_spi_transmit_data16 | ( | ssi_regs_t * | SPIx, |
| uint16_t | tx_data | ||
| ) |
Write 16-Bits in the data register.
| Register | BitsName |
|---|---|
| DATA | DATA |
| SPIx | SPI instance |
| tx_data | Value between Min_Data=0x0000 and Max_Data=0xFFFF |
| None |
| __STATIC_INLINE void ll_spi_transmit_data32 | ( | ssi_regs_t * | SPIx, |
| uint32_t | tx_data | ||
| ) |
Write 32-Bits in the data register.
| Register | BitsName |
|---|---|
| DATA | DATA |
| SPIx | SPI instance |
| tx_data | Value between Min_Data=0x00000000 and Max_Data=0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_spi_transmit_data8 | ( | ssi_regs_t * | SPIx, |
| uint8_t | tx_data | ||
| ) |
Write 8-Bits in the data register.
| Register | BitsName |
|---|---|
| DATA | DATA |
| SPIx | SPI instance |
| tx_data | Value between Min_Data=0x00 and Max_Data=0xFF |
| None |