8#include "pflib/Exception.h"
9#include "pflib/logging/Logging.h"
38 virtual void write_byte(uint8_t i2c_dev_addr, uint8_t data) = 0;
44 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:18
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.
boost::log::sources::severity_channel_logger_mt< level, std::string > logger
our logger type
Definition Logging.h:39
logger get(const std::string &name)
Gets a logger with the input name for its channel.
Definition Logging.cxx:24
This version of the fast control code interfaces with the CMS Fast control library which can be contr...
Definition Backend.cxx:3