Function rc_spi_manual_select#
- Defined in File spi.h 
Function Documentation#
- 
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. - Parameters:
- bus – [in] SPI bus to use 
- slave – [in] slave id 
- select – [in] 0 to deselect, otherwise selects 
 
- Returns:
- 0 on succcess or -1 on failure