This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

Function rc_spi_init_auto_slave

Function Documentation

int rc_spi_init_auto_slave(int bus, int slave, int bus_mode, int speed_hz)

Initializes an SPI bus.

For description of the 4 SPI modes, see

  • bus[in] The bus

  • slave[in] The slave

  • bus_mode[in] SPI_MODE_0, SPI_MODE_1, SPI_MODE_2, or SPI_MODE_3

  • speed_hz[in] The speed hz


0 on succcess or -1 on failure