Module stm32wlxx_hal::spi
source · Expand description
Serial peripheral interface
The Spi
struct implement the embedded-hal
traits for transfers.
Constructors
There was a minor cartesian explosion when writing this module.
Function | Bus | plex | DMA |
---|---|---|---|
new_spi1_full_duplex | 1 | Full-duplex | No |
new_spi1_full_duplex_dma | 1 | Full-duplex | Yes |
new_spi1_mosi_simplex | 1 | MOSI-simplex | No |
new_spi1_mosi_simplex_dma | 1 | MOSI-simplex | Yes |
new_spi2_full_duplex | 2 | Full-duplex | No |
new_spi2_full_duplex_dma | 2 | Full-duplex | Yes |
new_spi2_mosi_simplex | 2 | MOSI-simplex | No |
new_spi2_mosi_simplex_dma | 2 | MOSI-simplex | Yes |
Structs
- SPI mode
- Typestate for no MISO on a generic SPI structure.
- Typestate for no MOSI on a generic SPI structure.
- Typestate for no SCK on a generic SPI structure.
- Typestate for the internal Sub-GHz MISO.
- Typestate for the internal Sub-GHz MOSI.
- Typestate for the internal Sub-GHz SCK.
- SPI 1 and 2 driver.
Enums
- Baud rate divisors.
- SPI errors
- Clock phase
- Clock polarity
Constants
- Helper for CPOL = 0, CPHA = 0
- Helper for CPOL = 0, CPHA = 1
- Helper for CPOL = 1, CPHA = 0
- Helper for CPOL = 1, CPHA = 1
Traits
- Full duplex (master mode)
- Blocking transfer
- Blocking write