#include <stdint.h>
#include <linux/spi/spidev.h>
Go to the source code of this file.
|
int | rc_spi_init_auto_slave (int bus, int slave, int bus_mode, int speed_hz) |
| Initializes an SPI bus. More...
|
|
int | rc_spi_init_manual_slave (int bus, int slave, int bus_mode, int speed_hz, int chip, int pin) |
| Initializes an SPI bus and GPIO pin for use as a manual SPI slave select pin. More...
|
|
int | rc_spi_get_fd (int bus, int slave) |
| fetches the file descriptor for a specified slave so the user can do more advanced IO operations than what's presented here More...
|
|
int | rc_spi_close (int bus) |
| Closes and cleans up the bus for specified slave. More...
|
|
int | rc_spi_manual_select (int bus, int slave, int select) |
| Manually selects or deselects a slave. More...
|
|
int | rc_spi_transfer (int bus, int slave, uint8_t *tx_data, size_t tx_bytes, uint8_t *rx_data) |
| Send any sequence of bytes and read the response. More...
|
|
int | rc_spi_write (int bus, int slave, uint8_t *data, size_t bytes) |
| Writes data to specified slave. More...
|
|
int | rc_spi_read (int bus, int slave, uint8_t *data, size_t bytes) |
| Reads data from a specified slave. More...
|
|