Merge PR #4: Add monitor gpio number get method

pull/6/head
Jenkins nymea 2021-09-06 09:04:36 +02:00
commit 24395ace0d
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);