15#ifndef MOCKI2CCONTROLLER_HPP
16#define MOCKI2CCONTROLLER_HPP
19#include <gmock/gmock.h>
Definition of the II2CController interface.
Interface for controlling I2C devices.
virtual uint16_t readRegister(uint8_t reg)=0
virtual void writeRegister(uint8_t reg, uint16_t value)=0
Class to emulate the behavior of the I2C controller.
MOCK_METHOD(uint16_t, readRegister,(uint8_t reg),(override))
Mocked method to read a register from the I2C controller.
MOCK_METHOD(void, writeRegister,(uint8_t reg, uint16_t value),(override))
Mocked method to initialize the I2C controller.