43 #ifndef __DEV_I2C_DEVICE_HH__ 44 #define __DEV_I2C_DEVICE_HH__ 47 #include "params/I2CDevice.hh" 72 virtual uint8_t
read() = 0;
81 virtual void write(uint8_t msg) = 0;
94 #endif // __DEV_I2C_DEVICE__ virtual void i2cStart()=0
Perform any initialization necessary for the device when it received a start signal from the bus mast...
virtual uint8_t read()=0
Return the next message that the device expects to send.
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
virtual void write(uint8_t msg)=0
Perform any actions triggered by an i2c write (save msg in a register, perform an interrupt...
I2CDevice(const I2CDeviceParams *p)
Abstract superclass for simulation objects.