|
PER Firmware
|
Configuration entry for SPI initilization. More...
#include <spi.h>
Public Attributes | |
| uint32_t | data_rate |
| Target baudrate in b/s (might be different depending on peripheral clock divison) | |
| uint8_t | data_len |
| Number of bits per transaction. | |
| bool | nss_sw |
| Save Select controlled by Software. | |
| GPIO_TypeDef * | nss_gpio_port |
| GPIO Port of SPI CS Pin. | |
| uint32_t | nss_gpio_pin |
| GPIO Pin of SPI CS Pin. | |
| dma_init_t * | rx_dma_cfg |
| DMA initilization for RX transfer. | |
| dma_init_t * | tx_dma_cfg |
| DMA initilization for TX transfer. | |
| volatile bool | _busy |
| SPI Peripheral currently in a transaction. | |
| volatile bool | _error |
| SPI Peripheral current transaction error. | |
| volatile bool | _direct_mode_error |
| DMA error while attempting to operate in direct mode. | |
| volatile bool | _fifo_overrun |
| DMA FIFO has been overrun - this should never occur, as it should never be enabled. | |
| SPI_TypeDef * | periph |
| SPI Peripheral. | |
| SPI_Mode | mode |
| uint8_t | cpol |
| uint8_t | cpha |
Configuration entry for SPI initilization.