SPI (Serial Peripheral Interface) interface. More...


Go to the source code of this file.
Data Structures | |
| struct | hw_spi_config_t |
| SPI initialization configuration. More... | |
Enumerations | |
| enum | hw_spi_mode_t { hw_spi_mode_0, hw_spi_mode_1, hw_spi_mode_2, hw_spi_mode_3 } |
| SPI mode selection. More... | |
Functions | |
Lifecycle | |
| hw_deviceio_t * | hw_spi_init_default (uint32_t baud_rate, const hw_spi_config_t *config) |
| Initialize an SPI interface using the platform default adapter and pins. More... | |
| hw_deviceio_t * | hw_spi_init (uint8_t index, hw_gpio_t *sck_pin, hw_gpio_t *tx_pin, hw_gpio_t *rx_pin, hw_gpio_t *cs_pin, uint32_t baud_rate, const hw_spi_config_t *config) |
| Initialize an SPI interface with a specific adapter and pins. More... | |
| hw_deviceio_t * | hw_spi_init_device (const char *device, uint32_t baud_rate, const hw_spi_config_t *config) |
| Initialize an SPI interface from a platform-specific device path. More... | |
Properties | |
| uint8_t | hw_spi_count (void) |
| Get the total number of available SPI adapters. More... | |
SPI (Serial Peripheral Interface) interface.
Definition in file spi.h.