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

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

#include <MockMCP2515Controller.hpp>

Signals

void speedUpdated (float newSpeed)
 Speed updated signal.
 
void rpmUpdated (int newRpm)
 Rotation per minute updated signal.
 
- Signals inherited from IMCP2515Controller
void speedUpdated (float newSpeed)
 Signal emitted when the speed is updated.
 
void rpmUpdated (int newRpm)
 Signal emitted when the RPM is updated.
 

Public Member Functions

 MOCK_METHOD (bool, init,(),(override))
 Mocked method to initialize the MCP2515 controller.
 
 MOCK_METHOD (void, processReading,(),(override))
 Mocked method to process the reading of the MCP2515 controller.
 
 MOCK_METHOD (void, stopReading,(),(override))
 Mocked method to stop the reading of the MCP2515 controller.
 
 MOCK_METHOD (bool, isStopReadingFlagSet,(),(const, override))
 Mocked method to check if the stop reading flag is set.
 
- Public Member Functions inherited from IMCP2515Controller
virtual ~IMCP2515Controller ()=default
 
virtual bool init ()=0
 
virtual void processReading ()=0
 
virtual void stopReading ()=0
 
virtual bool isStopReadingFlagSet () const =0
 

Detailed Description

Class to emulate the behavior of the MCP2515 controller.

Definition at line 30 of file MockMCP2515Controller.hpp.

Member Function Documentation

◆ MOCK_METHOD() [1/4]

MockMCP2515Controller::MOCK_METHOD ( bool ,
init ,
() ,
(override)  )

Mocked method to initialize the MCP2515 controller.

Here is the call graph for this function:

◆ MOCK_METHOD() [2/4]

MockMCP2515Controller::MOCK_METHOD ( bool ,
isStopReadingFlagSet ,
() ,
(const, override)  )

Mocked method to check if the stop reading flag is set.

Here is the call graph for this function:

◆ MOCK_METHOD() [3/4]

MockMCP2515Controller::MOCK_METHOD ( void ,
processReading ,
() ,
(override)  )

Mocked method to process the reading of the MCP2515 controller.

Here is the call graph for this function:

◆ MOCK_METHOD() [4/4]

MockMCP2515Controller::MOCK_METHOD ( void ,
stopReading ,
() ,
(override)  )

Mocked method to stop the reading of the MCP2515 controller.

Here is the call graph for this function:

◆ rpmUpdated

void MockMCP2515Controller::rpmUpdated ( int newRpm)
signal

Rotation per minute updated signal.

Parameters
newRpmThe new RPM value.

◆ speedUpdated

void MockMCP2515Controller::speedUpdated ( float newSpeed)
signal

Speed updated signal.

Parameters
newSpeedThe new speed value.

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