QuadroCopter  0.1.4
i2cDevice.h File Reference
#include "../Interfaces/IDevice.h"
#include "exceptions/i2cSetupException.h"
#include "exceptions/i2cRuntimeException.h"
#include <cstdlib>
#include <iostream>
#include <unistd.h>
#include <sys/ioctl.h>
#include <linux/i2c-dev.h>
#include <fcntl.h>
#include <sys/stat.h>

Go to the source code of this file.

Classes

class  quadro::i2c::i2cDevice
 

Namespaces

 quadro
 
 quadro::i2c
 

Macros

#define I2C_BUS_COUNT   1
 How many I2C buses are available. Add paths below as required. More...
 
#define I2C_1   "/dev/i2c-1"
 File Path for the i2c-1 bus. More...
 
#define ONE_BYTE   1
 Used for specifying how many bytes to read. More...
 
#define TWO_BYTES   2
 Used for specifying how many bytes to write. More...
 
#define MAX_BUFF   1024
 Used to store fatal error. More...
 

Macro Definition Documentation

#define I2C_1   "/dev/i2c-1"

File Path for the i2c-1 bus.

#define I2C_BUS_COUNT   1

How many I2C buses are available. Add paths below as required.

#define MAX_BUFF   1024

Used to store fatal error.

#define ONE_BYTE   1

Used for specifying how many bytes to read.

#define TWO_BYTES   2

Used for specifying how many bytes to write.