Add getter for HAL GPIO pin data

This commit is contained in:
Henrik Stickann
2022-04-19 23:22:33 +02:00
parent 3041499ce0
commit 9ea2513e5a
2 changed files with 19 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ namespace sta
void setState(GpioPinState state) override;
GPIO_TypeDef * getPort() const;
uint16_t getPin() const;
uint8_t getIndex() const;
private:
GPIO_TypeDef * port_; /**< GPIO port */
uint16_t pin_; /**< GPIO pin */