Functions | |
FAR struct spi_dev_s * | create_swspi (int cs_pin, int sck_pin, int mosi_pin, int miso_pin) |
void | destroy_swspi (FAR struct spi_dev_s *dev) |
FAR struct spi_dev_s * create_swspi | ( | int | cs_pin, |
int | sck_pin, | ||
int | mosi_pin, | ||
int | miso_pin | ||
) |
Create software emulated SPI driver.
[in] | cs_pin | Chip Select pin number. |
[in] | sck_pin | SCK signal pin number. |
[in] | mosi_pin | MOSI signal pin number. |
[in] | miso_pin | MISO signal pin number. |
void destroy_swspi | ( | FAR struct spi_dev_s * | dev | ) |
Destroy an instance of software emulated SPI driver.
[in] | dev | Instance of Software SPI. |