43 BusDevice(
unsigned int bus,
unsigned int device);
45 virtual unsigned char readRegister(
unsigned int registerAddress)=0;
46 virtual unsigned char*
readRegisters(
unsigned int number,
unsigned int fromAddress=0)=0;
47 virtual int write(
unsigned char value)=0;
48 virtual int writeRegister(
unsigned int registerAddress,
unsigned char value)=0;
50 virtual void close()=0;
virtual void debugDumpRegisters(unsigned int number=0xff)=0
int file
Definition: BusDevice.h:41
BusDevice(unsigned int bus, unsigned int device)
Definition: BusDevice.cpp:34
virtual unsigned char readRegister(unsigned int registerAddress)=0
virtual int write(unsigned char value)=0
unsigned int bus
Definition: BusDevice.h:39
Definition: BusDevice.cpp:27
This class is the parent of I2C and SPI devices, so that devices that use both SPI and I2C interfaces...
Definition: BusDevice.h:37
virtual ~BusDevice()
Definition: BusDevice.cpp:43
unsigned int device
Definition: BusDevice.h:40
virtual unsigned char * readRegisters(unsigned int number, unsigned int fromAddress=0)=0
virtual int writeRegister(unsigned int registerAddress, unsigned char value)=0