HardFOC Core
API reference
Loading...
Searching...
No Matches
Classes | Namespaces
MockGpio.h File 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
 

Detailed Description

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().