spi_close()

The spi_close() function disconnects the application from the SPI resource manager. The prototype for this function is:

int spi_close( int fd );

The argument is:

fd
The file descriptor that the spi_open() function returned.