Defined in File spi.h
int rc_spi_manual_select(int bus, int slave, int select)¶
Manually selects or deselects a slave.
Only works if slave was initialized with SPI_SLAVE_MODE_MANUAL. If SPI_SLAVE_MODE_AUTO was selected then the SPI driver will handle this automatically when reading or writing.
bus – [in] SPI bus to use
slave – [in] slave id
select – [in] 0 to deselect, otherwise selects
0 on succcess or -1 on failure