|
| void | Reset () noexcept |
| | Destroy every object in every slot and clear all scripting (call between test cases).
|
| |
| hf::host::MockGpio * | Gpio (size_t slot) noexcept |
| | The fake in GPIO slot slot, or nullptr when the slot is empty.
|
| |
| hf::host::MockGpio * | GpioByPin (hf_pin_num_t pin) noexcept |
| | The fake driving MCU pin pin, or nullptr.
|
| |
| const GpioSpec * | GpioSpecOf (size_t slot) noexcept |
| | The spec the slot was created with (valid only while the slot is in use).
|
| |
| void | FailGpioInit (hf_pin_num_t pin) noexcept |
| | Make the next CreateGpio for pin produce a fake whose initialisation fails.
|
| |
| void | SetSpiResponder (hf_pin_num_t cs, hf::host::MockSpi::Responder responder) |
| | Install a responder for the device whose chip select is cs (applied when it is created).
|
| |
| hf::host::MockSpi * | SpiDeviceByCs (hf_pin_num_t cs) noexcept |
| | The fake for chip select cs, or nullptr when no such device exists.
|
| |
| const SpiDeviceSpec * | SpiDeviceSpecOf (hf_pin_num_t cs) noexcept |
| | The spec the device on chip select cs was created with, or nullptr.
|
| |
| const SpiBusSpec * | SpiBusSpecOf (size_t bus) noexcept |
| | The spec bus bus was created with, or nullptr when it is down.
|
| |
| void | FailSpiBus (size_t bus, bool fail=true) noexcept |
| | Make CreateSpiBus(bus) fail.
|
| |
| hf::host::MockAdc * | InternalAdc () noexcept |
| | The MCU ADC fake, or nullptr when not created.
|
| |
| uint32_t | InternalAdcChannelMask () noexcept |
| | Channel mask the MCU ADC was created with.
|
| |
| void | FailInternalAdc (bool fail=true) noexcept |
| | Make CreateInternalAdc fail.
|
| |
| hf::host::MockTemperature * | DieTemperature () noexcept |
| | The die-temperature fake, or nullptr.
|
| |
| void | FailDieTemperatureInit (bool fail=true) noexcept |
| | Make the next die-temperature fake fail its initialisation.
|
| |
| hf::host::MockNvs * | Nvs (size_t slot) noexcept |
| | The NVS fake in region slot, or nullptr.
|
| |
| hf::host::MockCan * | Can () noexcept |
| | The CAN fake, or nullptr.
|
| |
| hf::host::MockUart * | Uart (uint8_t port) noexcept |
| | The UART fake on port, or nullptr.
|
| |
| void | FailLedStrip (bool fail=true) noexcept |
| | Make LedStripBegin fail.
|
| |
| uint32_t | LedShownPixel (uint16_t index) noexcept |
| | Last colour shown on LED index (after LedStripShow).
|
| |
| void | SetResetReason (uint32_t reason) noexcept |
| | Value LastResetReason() returns.
|
| |
| int | RestartCalls () noexcept |
| | Number of SystemRestart() calls (the host version throws after counting).
|
| |