Synopsis
typedef struct {
  int bus_index;
  const PLATFORM_PIN_CONFIGURATION_t *pins;
  const PLATFORM_PRIVATE_SPI_METHODS_t *methods[];
} PLATFORM_PRIVATE_SPI_CONFIGURATION_t;
Description

PLATFORM_PRIVATE_SPI_CONFIGURATION_t describes the configuration of a Platform SPI bus.

bus_index
The device SPI bus index to use for the SPI controller. For instance, platform SPI bus with index 0 may well be implemented using the device SPI bus SPI2, in which case bus_index will be 2.
pins
The pin connections required by the SPI bus.
methods
The methods required to implement the SPI bus for byte frames (index 0) and extended frames (index 1). For SPI buses implemented entirely in software, both entries in methods should be set to platform_private_software_spi_methods. For SPI buses that are implemented entirely in hardware with the capability of extended frames, both entries should be set to the device-specific methods for that controller. For SPI buses that are can implement byte frame in hardware but require extended frames in software, index 0 should be set to the device-specific methods for that controller, and index 1 should be set to platform_private_software_spi_methods.
See Also

platform_private_spi_bus_configuration, platform_private_software_spi_methods