6#include "pflib/Exception.h"
33 virtual void write_byte(uint8_t i2c_dev_addr, uint8_t data) = 0;
39 virtual uint8_t
read_byte(uint8_t i2c_dev_addr) = 0;
Base class which encapsulates the I2C interface, represents a single bus.
Definition I2C.h:14
virtual int get_bus_speed()=0
Get the speed for the bus in kbps.
virtual void write_byte(uint8_t i2c_dev_addr, uint8_t data)=0
Write a single byte using the efficient interface, and wait for completion.
virtual uint8_t read_byte(uint8_t i2c_dev_addr)=0
Read a single byte using the efficient interface.
virtual std::vector< uint8_t > general_write_read(uint8_t i2c_dev_addr, const std::vector< uint8_t > &wdata, int nread=0)=0
Carry out a write of zero or more bytes followed a by a read of zero or more bytes.
virtual void set_bus_speed(int speed=100)=0
Set the speed for the bus in kbps.
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3