Class to emulate the behavior of the MCP2515 controller.
More...
#include <MockMCP2515Controller.hpp>
|
void | speedUpdated (float newSpeed) |
| Speed updated signal.
|
|
void | rpmUpdated (int newRpm) |
| Rotation per minute updated signal.
|
|
void | speedUpdated (float newSpeed) |
| Signal emitted when the speed is updated.
|
|
void | rpmUpdated (int newRpm) |
| Signal emitted when the RPM is updated.
|
|
|
| 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.
|
|
virtual | ~IMCP2515Controller ()=default |
|
virtual bool | init ()=0 |
|
virtual void | processReading ()=0 |
|
virtual void | stopReading ()=0 |
|
virtual bool | isStopReadingFlagSet () const =0 |
|
Class to emulate the behavior of the MCP2515 controller.
Definition at line 30 of file MockMCP2515Controller.hpp.
◆ MOCK_METHOD() [1/4]
MockMCP2515Controller::MOCK_METHOD |
( |
bool | , |
|
|
init | , |
|
|
() | , |
|
|
(override) | ) |
Mocked method to initialize the MCP2515 controller.
◆ MOCK_METHOD() [2/4]
Mocked method to check if the stop reading flag is set.
◆ MOCK_METHOD() [3/4]
MockMCP2515Controller::MOCK_METHOD |
( |
void | , |
|
|
processReading | , |
|
|
() | , |
|
|
(override) | ) |
Mocked method to process the reading of the MCP2515 controller.
◆ MOCK_METHOD() [4/4]
MockMCP2515Controller::MOCK_METHOD |
( |
void | , |
|
|
stopReading | , |
|
|
() | , |
|
|
(override) | ) |
Mocked method to stop the reading of the MCP2515 controller.
◆ rpmUpdated
void MockMCP2515Controller::rpmUpdated |
( |
int | newRpm | ) |
|
|
signal |
Rotation per minute updated signal.
- Parameters
-
◆ speedUpdated
void MockMCP2515Controller::speedUpdated |
( |
float | newSpeed | ) |
|
|
signal |
Speed updated signal.
- Parameters
-
newSpeed | The new speed value. |
The documentation for this class was generated from the following file: