|
Internal Interface Wrap
API reference
|
Namespaces | |
| namespace | pin |
| Convenience aliases for common pins (PA0, PA1, ... PK15) | |
Enumerations | |
| enum class | GpioPort : hf_u8_t { A = 0 , B = 1 , C = 2 , D = 3 , E = 4 , F = 5 , G = 6 , H = 7 , I = 8 , J = 9 , K = 10 } |
| GPIO port index (A=0, B=1, ... K=10) More... | |
| enum class | HalStatus : hf_u8_t { OK = 0x00U , ERROR = 0x01U , BUSY = 0x02U , TIMEOUT = 0x03U } |
| STM32 HAL status codes (mirrors HAL_StatusTypeDef without HAL include) More... | |
Functions | |
| constexpr hf_pin_num_t | EncodePin (GpioPort port, hf_u8_t pin) noexcept |
| Encode (port, pin) → hf_pin_num_t. | |
| constexpr hf_u8_t | DecodePinPort (hf_pin_num_t pin) noexcept |
| Decode hf_pin_num_t → port index. | |
| constexpr hf_u8_t | DecodePinIndex (hf_pin_num_t pin) noexcept |
| Decode hf_pin_num_t → pin within port (0-15) | |
| constexpr hf_u16_t | DecodePinMask (hf_pin_num_t pin) noexcept |
| Decode hf_pin_num_t → STM32 HAL pin mask (GPIO_PIN_0 .. GPIO_PIN_15) | |
| constexpr HalStatus | ToHalStatus (hf_u32_t raw_status) noexcept |
| Convert raw HAL_StatusTypeDef to our enum. | |
| constexpr bool | IsHalOk (hf_u32_t raw_status) noexcept |
| Check if a raw HAL status indicates success. | |
|
strong |
|
strong |
|
constexprnoexcept |
Decode hf_pin_num_t → pin within port (0-15)
|
constexprnoexcept |
Decode hf_pin_num_t → STM32 HAL pin mask (GPIO_PIN_0 .. GPIO_PIN_15)
|
constexprnoexcept |
Decode hf_pin_num_t → port index.
|
constexprnoexcept |
Encode (port, pin) → hf_pin_num_t.
Check if a raw HAL status indicates success.
Convert raw HAL_StatusTypeDef to our enum.
ADC reference voltage (V) — most STM32 boards.
ADC maximum channels (typical STM32F4/H7)
ADC maximum resolution (bits)
|
staticconstexpr |
Maximum total GPIO pins (ports * pins_per_port)
Maximum GPIO ports (A..K = 11 on largest STM32H7)