![]() |
RTEMS 6.1
|
Serial Peripheral Interface (SPI) Driver API. More...
#include <linux/spi/spidev.h>#include <rtems.h>#include <rtems/seterr.h>#include <rtems/thread.h>Go to the source code of this file.
Data Structures | |
| struct | spi_bus |
| SPI bus control. More... | |
Macros | |
| #define | SPI_BUS_OBTAIN _IO(SPI_IOC_MAGIC, 13) |
| Obtains the bus. | |
| #define | SPI_BUS_RELEASE _IO(SPI_IOC_MAGIC, 23) |
| Releases the bus. | |
Typedefs | |
| typedef struct spi_ioc_transfer | spi_ioc_transfer |
| typedef struct spi_bus | spi_bus |
Functions | |
| int | spi_bus_init (spi_bus *bus) |
| Initializes a bus control. | |
| spi_bus * | spi_bus_alloc_and_init (size_t size) |
| Allocates a bus control from the heap and initializes it. | |
| void | spi_bus_destroy (spi_bus *bus) |
| Destroys a bus control. | |
| void | spi_bus_destroy_and_free (spi_bus *bus) |
| Destroys a bus control and frees its memory. | |
| int | spi_bus_register (spi_bus *bus, const char *bus_path) |
| Registers a bus control. | |
Serial Peripheral Interface (SPI) Driver API.