Merge PR #4: Add monitor gpio number get method
This commit is contained in:
commit
24395ace0d
@ -92,6 +92,11 @@ GpioMonitor::~GpioMonitor()
|
|||||||
wait(200);
|
wait(200);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int GpioMonitor::gpioNumber() const
|
||||||
|
{
|
||||||
|
return m_gpioNumber;
|
||||||
|
}
|
||||||
|
|
||||||
/*! Returns the edge interrupt configuration for this GpioMonitor. */
|
/*! Returns the edge interrupt configuration for this GpioMonitor. */
|
||||||
Gpio::Edge GpioMonitor::edge() const
|
Gpio::Edge GpioMonitor::edge() const
|
||||||
{
|
{
|
||||||
|
|||||||
@ -44,6 +44,8 @@ public:
|
|||||||
explicit GpioMonitor(int gpio, QObject *parent = nullptr);
|
explicit GpioMonitor(int gpio, QObject *parent = nullptr);
|
||||||
~GpioMonitor() override;
|
~GpioMonitor() override;
|
||||||
|
|
||||||
|
int gpioNumber() const;
|
||||||
|
|
||||||
Gpio::Edge edge() const;
|
Gpio::Edge edge() const;
|
||||||
void setEdge(Gpio::Edge edge);
|
void setEdge(Gpio::Edge edge);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user