Hotwheels-Cluster 1.2
Creation of Cluster APP for SEA:ME project.
 
Loading...
Searching...
No Matches
MockI2CController Class Reference

Class to emulate the behavior of the I2C controller. More...

#include <MockI2CController.hpp>

Public Member Functions

 MOCK_METHOD (void, writeRegister,(uint8_t reg, uint16_t value),(override))
 Mocked method to initialize the I2C controller.
 
 MOCK_METHOD (uint16_t, readRegister,(uint8_t reg),(override))
 Mocked method to read a register from the I2C controller.
 
- Public Member Functions inherited from II2CController
virtual ~II2CController ()=default
 
virtual void writeRegister (uint8_t reg, uint16_t value)=0
 
virtual uint16_t readRegister (uint8_t reg)=0
 

Detailed Description

Class to emulate the behavior of the I2C controller.

Definition at line 25 of file MockI2CController.hpp.

Member Function Documentation

◆ MOCK_METHOD() [1/2]

MockI2CController::MOCK_METHOD ( uint16_t ,
readRegister ,
(uint8_t reg) ,
(override)  )

Mocked method to read a register from the I2C controller.

Here is the call graph for this function:

◆ MOCK_METHOD() [2/2]

MockI2CController::MOCK_METHOD ( void ,
writeRegister ,
(uint8_t reg, uint16_t value) ,
(override)  )

Mocked method to initialize the I2C controller.

Here is the call graph for this function:

The documentation for this class was generated from the following file: