louper 1.0.0
InterruptWorker Class Reference

Worker for an individual pin interrupt monitor. More...

#include <hardware.h>

Public Types

using sptr = std::shared_ptr< InterruptWorker >
 Shared pointer type for InterruptWorker.
 

Public Member Functions

void watchPin (const uint8_t pin)
 Worker control: Start. More...
 
void stop ()
 Worker control: Stop.
 
SignalInterrupt & interrupt ()
 Getter for input interrupt signal. More...
 

Private Attributes

SignalInterrupt s_interrupt
 Signal: input interrupt.
 
bool m_running = true
 Is this worker running?
 

Detailed Description

Worker for an individual pin interrupt monitor.

Member Function Documentation

◆ interrupt()

SignalInterrupt & InterruptWorker::interrupt ( )
inline

Getter for input interrupt signal.

Returns
SignalInterrupt&

◆ watchPin()

void InterruptWorker::watchPin ( const uint8_t  pin)
inline

Worker control: Start.

Parameters
pin

The documentation for this class was generated from the following file: