|
HardFOC Core
API reference
|
Scriptable BaseGpio fake for host tests. More...
#include "base/BaseGpio.h"#include <cstdint>#include <vector>Go to the source code of this file.
Classes | |
| class | hf::host::MockGpio |
Namespaces | |
| namespace | hf |
| namespace | hf::host |
Scriptable BaseGpio fake for host tests.
Levels are electrical (HIGH/LOW); BaseGpio applies the active-high / active-low mapping on top, exactly as on target. An output pin reads back the level last driven; an input pin reads the level set with SetInputLevel(). Every driven level is appended to LevelHistory(), so a test can check reset pulses and chip-select sequences. FireInterrupt() invokes the callback registered through ConfigureInterrupt().