| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | /** | ||
| 4 | * @brief Interface for GPIO output abstraction | ||
| 5 | * | ||
| 6 | * Provides hardware abstraction for GPIO outputs. | ||
| 7 | * Enables testability through mock implementations. | ||
| 8 | */ | ||
| 9 | class IGpioOutput { | ||
| 10 | public: | ||
| 11 | ✗ | virtual ~IGpioOutput() = default; | |
| 12 | |||
| 13 | /** | ||
| 14 | * @brief Set GPIO output level | ||
| 15 | * @param high true for HIGH, false for LOW | ||
| 16 | */ | ||
| 17 | virtual void setLevel(bool high) = 0; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * @brief Get current GPIO output level | ||
| 21 | * @return true if HIGH, false if LOW | ||
| 22 | */ | ||
| 23 | [[nodiscard]] virtual bool getLevel() const = 0; | ||
| 24 | }; | ||
| 25 |