Add monitor gpio number get method

This commit is contained in:
Simon Stürz 2021-09-05 12:33:11 +02:00
parent 29c44d4669
commit d7a34df817
2 changed files with 7 additions and 0 deletions

View File

@ -92,6 +92,11 @@ GpioMonitor::~GpioMonitor()
wait(200);
}
int GpioMonitor::gpioNumber() const
{
return m_gpioNumber;
}
/*! Returns the edge interrupt configuration for this GpioMonitor. */
Gpio::Edge GpioMonitor::edge() const
{

View File

@ -44,6 +44,8 @@ public:
explicit GpioMonitor(int gpio, QObject *parent = nullptr);
~GpioMonitor() override;
int gpioNumber() const;
Gpio::Edge edge() const;
void setEdge(Gpio::Edge edge);