|
HardFOC Vortex V1 HAL
Unified HAL API for the HardFOC Vortex motor-control platform (ESP32-C6, TMC9660)
|
Classes | |
| struct | Failures |
| Which Open() calls fail (the binding returns failure without creating the object). More... | |
| struct | LedFrame |
| One frame latched onto the status LED. More... | |
| struct | OpenLog |
| Every Open() call the managers made, and what the binding was asked to configure. More... | |
Functions | |
| void | Reset () noexcept |
| Close every object, forget the log and the failures, and remove every simulated I2C chip. | |
| Failures & | Fail () noexcept |
| Failure injection for the next Open() calls (cleared by Reset()). | |
| const OpenLog & | Log () noexcept |
| What the managers asked the binding for since the last Reset(). | |
| void | SetI2cPresent (uint8_t address, bool present=true) noexcept |
Simulate a chip that acknowledges address on the I2C bus (probe and scan see it). | |
| MockUart * | Uart () noexcept |
| MockCan * | Can () noexcept |
| MockSpi * | Spi (int index) noexcept |
| SPI device by the index SpiAddDevice() returned. | |
| MockI2c * | I2c (int index) noexcept |
| I2C device by the index I2cAddDevice() returned. | |
| MockI2c * | I2cAt (uint8_t address) noexcept |
I2C device added at address, or nullptr. | |
| MockGpio * | Gpio (HfFunctionalGpioPin pin) noexcept |
| MCU GPIO of a functional pin, or nullptr if McuGpioOpen() was not called for it. | |
| MockNvs & | NvsMock (NvsRegion region) noexcept |
| MockTemperature & | Temperature () noexcept |
| const std::vector< LedFrame > & | LedFrames () noexcept |
| Frames latched onto the status LED since the last Reset(). | |
| bool | LedOpen () noexcept |
| True while the status LED is open. | |
|
noexcept |
|
noexcept |
Failure injection for the next Open() calls (cleared by Reset()).
|
noexcept |
MCU GPIO of a functional pin, or nullptr if McuGpioOpen() was not called for it.
|
noexcept |
|
noexcept |
I2C device added at address, or nullptr.
|
noexcept |
Frames latched onto the status LED since the last Reset().
|
noexcept |
True while the status LED is open.
|
noexcept |
What the managers asked the binding for since the last Reset().
|
noexcept |
|
noexcept |
Close every object, forget the log and the failures, and remove every simulated I2C chip.
|
noexcept |
Simulate a chip that acknowledges address on the I2C bus (probe and scan see it).
Call before the device is added (before EnsureInitialized()). A device added at an address that is not present NACKs every transfer, as on a board without that chip; a test that wants a chip model sets one on I2cAt(address) after marking it present.
|
noexcept |
|
noexcept |
|
noexcept |