louper 1.0.0
InterruptHandler Class Reference

Controller for all pin interrupts. More...

#include <hardware.h>

Public Types

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

Public Member Functions

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

Private Attributes

SignalInterrupt s_interrupt
 Signal for input interrupt.
 
std::map< uint8_t, InterruptWorker::sptrm_workers
 Worker instances.
 
std::map< uint8_t, std::thread > m_threads
 Worker threads.
 

Detailed Description

Controller for all pin interrupts.

Member Function Documentation

◆ interrupt()

SignalInterrupt & InterruptHandler::interrupt ( )
inline

Getter for input interrupt signal.

Returns
SignalInterrupt&

◆ setup()

void InterruptHandler::setup ( const uint8_t  pin)

Handler control: Start.

Parameters
pin

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