SPI
Serial Peripheral Interface (SPI) hardware abstraction layer.
Summary
Macros
- SPI_CONFIG_MASK : Mask for the SPI_CFG register.
- SPI_PADS_NUM : Number of pads used for the SPI interface, for a single instance.
- IS_GPIO_REAL : Verify if the GPIO number corresponds to an actual pin, as opposed to a constant high/low value.
- SYS_SPI_CONFIG : Configure the specified SPI interface's operation and controller information.
- SYS_SPI_TRANSFERCONFIG : Configure the SPI transfer information for the specified SPI instance.
- SYS_SPI_READ : Generate clock and CS to read data from SPI interface.
- SYS_SPI_WRITE : Generate clock and CS to write data to SPI interface.
- SYS_SPI_GPIOCONFIG : Configure four GPIOs for the SPI0 interface.
- SYS_DSPI_GPIOCONFIG : Configure four GPIOs for the SPI0 interface for DSPI.
- SYS_QSPI_GPIOCONFIG : Configure six GPIOs for the SPI0 interface for QSPI cfg GPIO pin configuration for the SPI pads clk GPIO to use as the QSPI clock pad cs GPIO to use as the QSPI chip select pad io0 GPIO to use as the QSPI io0 io1 GPIO to use as the QSPI io1 io2 GPIO to use as the QSPI io2 io3 GPIO to use as the QSPI io3.
Functions
- Sys_SPI_Config : Configure the specified SPI interface's operation and controller information.
- Sys_SPI_TransferConfig : Configure the SPI transfer information for the specified SPI instance.
- Sys_SPI_Read : Generate clock and CS to read data from SPI interface.
- Sys_SPI_Write : Generate clock and CS to write data to SPI interface.
- Sys_SPI_GPIOConfig : Configure four GPIOs for the specified SPI interface.
- Sys_DSPI_GPIOConfig : Configure four GPIOs for the specified SPI interface.
- Sys_QSPI_GPIOConfig : Configure six GPIOs for the specified SPI interface.