HardFOC Flux V1 HAL
Unified HAL API for the HardFOC Flux valve-control platform (ESP32-S3)
Loading...
Searching...
No Matches
flux_hal_valve.hpp
Go to the documentation of this file.
1
28#ifndef FLUX_HAL_VALVE_HPP_
29#define FLUX_HAL_VALVE_HPP_
30
32
33namespace flux::hal {
34
36struct ValveBank {
44 static HalResult EnablePins(bool on) noexcept;
45
47 [[nodiscard]] static bool EnablePinsHigh() noexcept;
48
50 [[nodiscard]] static bool IsHeldOff() noexcept;
51};
52
53} // namespace flux::hal
54
55#endif // FLUX_HAL_VALVE_HPP_
Shared HAL types for Flux V1: the manager error catalog and the facade result.
Definition flux_hal_types.hpp:29
Facade operation result.
Definition flux_hal_types.hpp:69
Both valve banks, as one hardware-gated actuator group.
Definition flux_hal_valve.hpp:36
static bool IsHeldOff() noexcept
The pins were dropped and not re-armed since.
Definition flux_hal_valve.cpp:45
static HalResult EnablePins(bool on) noexcept
Drop (false) or re-arm (true) both valve-bank enable pins.
Definition flux_hal_valve.cpp:17
static bool EnablePinsHigh() noexcept
Both enable pins are driven high (banks may be energised by channel commands).
Definition flux_hal_valve.cpp:38