A test helper class that emulate a GPIO pin.
More...
#include <FakeGPIO.hpp>
|
| | FakeGPIO (zmqpp::context &ctx, const std::string &name) |
| |
| | FakeGPIO (const FakeGPIO &)=delete |
| |
| void | interrupt () |
| | Emulate an interrupt by writing to the message bus. More...
|
| |
| bool | run (zmqpp::socket *pipe) |
| | if you want the GPIO in "passive" mode (ie to watch event generated BY the device), run this with a zmqpp::actor. More...
|
| |
A test helper class that emulate a GPIO pin.
It doesn't support the full command set.
Definition at line 34 of file FakeGPIO.hpp.
◆ FakeGPIO() [1/2]
| FakeGPIO::FakeGPIO |
( |
zmqpp::context & |
ctx, |
|
|
const std::string & |
name |
|
) |
| |
◆ FakeGPIO() [2/2]
| Leosac::Test::Helper::FakeGPIO::FakeGPIO |
( |
const FakeGPIO & |
| ) |
|
|
delete |
◆ handle_cmd()
| void FakeGPIO::handle_cmd |
( |
| ) |
|
|
private |
◆ interrupt()
| void FakeGPIO::interrupt |
( |
| ) |
|
Emulate an interrupt by writing to the message bus.
Definition at line 35 of file FakeGPIO.cpp.
◆ run()
| bool FakeGPIO::run |
( |
zmqpp::socket * |
pipe | ) |
|
if you want the GPIO in "passive" mode (ie to watch event generated BY the device), run this with a zmqpp::actor.
Definition at line 40 of file FakeGPIO.cpp.
◆ send_state()
| void FakeGPIO::send_state |
( |
| ) |
|
|
private |
◆ ctx_
| zmqpp::context& Leosac::Test::Helper::FakeGPIO::ctx_ |
|
private |
◆ name_
| std::string Leosac::Test::Helper::FakeGPIO::name_ |
|
private |
◆ push_
| zmqpp::socket Leosac::Test::Helper::FakeGPIO::push_ |
|
private |
◆ rep_
| zmqpp::socket Leosac::Test::Helper::FakeGPIO::rep_ |
|
private |
◆ value_
| bool Leosac::Test::Helper::FakeGPIO::value_ |
|
private |
The documentation for this class was generated from the following files: