spi_open()
The spi_open() function lets the application connect to the SPI resource manager. The prototype for this function is:
int spi_open( const char *path );
The argument is:
- path
- The path name of the SPI device, usually /dev/spi0.
This function returns a file descriptor, or -1 if the open failed.
Page updated:
