Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions | Variables
gpio_mock.cpp File Reference

Mock of the board gpio. More...

Classes

class  lampda::platform::gpio::DigitalPinImpl
 

Namespaces

namespace  simulator
 Simulator dedicated namespace.
 
namespace  simulator::mock_gpios
 Encapsulate the mock GPIO signals.
 
namespace  simulator::mock_indicator
 Encapsulate the mock indicator signals.
 
namespace  simulator::mock_battery
 Encapsulate the mock battery signals.
 
namespace  lampda
 Program scope.
 
namespace  lampda::platform
 Handle the platform specific interactions.
 
namespace  lampda::platform::gpio
 handler for the GeneralPurposeInputOutputs
 

Typedefs

typedef void(* voidFuncPtr) (void)
 

Functions

void simulator::mock_gpios::update_callbacks ()
 
uint32_t simulator::mock_indicator::get_color ()
 

Variables

static std::map<::lampda::platform::gpio::DigitalPin::GPIO, voidFuncPtr > simulator::mock_gpios::callbacksRisingEdge
 
static std::map<::lampda::platform::gpio::DigitalPin::GPIO, voidFuncPtr > simulator::mock_gpios::callbacksFallingEdge
 
static std::map<::lampda::platform::gpio::DigitalPin::GPIO, voidFuncPtr > simulator::mock_gpios::callbacksChange
 
static bool simulator::mock_gpios::isButtonPressed = false
 
::lampda::COLOR simulator::mock_indicator::idColor
 
std::array< uint8_t, 255 > simulator::pinOutputValue
 

Detailed Description

Mock of the board gpio.