spidev_linux.h File Reference

Implementation of SPI access from Linux User Space. More...

Detailed Description

Implementation of SPI access from Linux User Space.

Author
Frank Hessel frank.nosp@m.@fhe.nosp@m.ssel..nosp@m.de

Definition in file spidev_linux.h.

#include "periph/spi.h"
#include "mutex.h"
#include "periph_conf.h"
+ Include dependency graph for spidev_linux.h:

Go to the source code of this file.

Data Structures

struct  spidev_linux_conf
 Static runtime configuration for SPI port + CS line. More...
 
struct  spidev_linux_state
 Dynamic runtime state for SPI port + CS line. More...
 

Typedefs

typedef struct spidev_linux_conf spidev_linux_conf_t
 Static runtime configuration for SPI port + CS line. More...
 
typedef struct spidev_linux_state spidev_linux_state_t
 Dynamic runtime state for SPI port + CS line. More...
 

Enumerations

enum  { SPI_SETUP_OK = 0, SPI_SETUP_INVALID = -1 }
 Status codes for SPI device setup. More...
 

Functions

int spidev_linux_setup (spi_t bus, unsigned cs_id, const char *name)
 register /dev/spidev* device to be used for SPI More...
 
void spidev_linux_teardown (void)
 Close open SPI file descriptors.