43#ifndef __DEV_I2C_DEVICE_HH__
44#define __DEV_I2C_DEVICE_HH__
47#include "params/I2CDevice.hh"
75 virtual uint8_t
read() = 0;
84 virtual void write(uint8_t msg) = 0;
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,...
virtual uint8_t read()=0
Return the next message that the device expects to send.
virtual void i2cStart()=0
Perform any initialization necessary for the device when it received a start signal from the bus mast...
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.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.