Add monitor gpio number get method
This commit is contained in:
parent
29c44d4669
commit
d7a34df817
@ -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
|
||||
{
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user