Developer World
Spresense SDK Library v3.3.0-375c679
Functions
Collaboration diagram for Functions:

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)
 

Detailed Description

Function Documentation

◆ create_swspi()

FAR struct spi_dev_s * create_swspi ( int  cs_pin,
int  sck_pin,
int  mosi_pin,
int  miso_pin 
)

Create software emulated SPI driver.

Parameters
[in]cs_pinChip Select pin number.
[in]sck_pinSCK signal pin number.
[in]mosi_pinMOSI signal pin number.
[in]miso_pinMISO signal pin number.

◆ destroy_swspi()

void destroy_swspi ( FAR struct spi_dev_s *  dev)

Destroy an instance of software emulated SPI driver.

Parameters
[in]devInstance of Software SPI.