RTEMS  5.0.0
Data Structures | Macros | Typedefs | Functions

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. More...
 
#define SPI_BUS_RELEASE   _IO(SPI_IOC_MAGIC, 23)
 Releases the bus. More...
 

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. More...
 
spi_busspi_bus_alloc_and_init (size_t size)
 Allocates a bus control from the heap and initializes it. More...
 
void spi_bus_destroy (spi_bus *bus)
 Destroys a bus control. More...
 
void spi_bus_destroy_and_free (spi_bus *bus)
 Destroys a bus control and frees its memory. More...
 
int spi_bus_register (spi_bus *bus, const char *bus_path)
 Registers a bus control. More...
 

Detailed Description

Serial Peripheral Interface (SPI) Driver API.