BlackSPI.h File Reference
#include "../BlackCore.h"
#include <cstring>
#include <string>
#include <fstream>
#include <cstdint>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/spi/spidev.h>
Include dependency graph for BlackSPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  BlackLib::BlackSpiProperties
 Holds properties of SPI. More...
 
class  BlackLib::BlackSPI
 Interacts with end user, to use SPI. More...
 

Namespaces

 BlackLib
 

Enumerations

enum  BlackLib::spiName {
  BlackLib::SPI0_0 = 0,
  BlackLib::SPI0_1 = 1,
  BlackLib::SPI1_0 = 2,
  BlackLib::SPI1_1 = 3
}
 
enum  BlackLib::spiMode {
  BlackLib::SpiDefault = 0x00,
  BlackLib::SpiPhase = 0x01,
  BlackLib::SpiPolarity = 0x02,
  BlackLib::SpiChipSelectHigh = 0x04,
  BlackLib::SpiLsbFirst = 0x08,
  BlackLib::Spi3Wire = 0x10,
  BlackLib::SpiLoop = 0x20,
  BlackLib::SpiNoChipSelect = 0x40,
  BlackLib::SpiReady = 0x80,
  BlackLib::SpiMode0 = (0|0),
  BlackLib::SpiMode1 = (0|SpiPhase),
  BlackLib::SpiMode2 = (SpiPolarity|0),
  BlackLib::SpiMode3 = (SpiPolarity|SpiPhase)
}