Interrupt
-
template<class Converter>
class Interrupt Subclassed by vslib::PeripheralInterrupt< Converter >, vslib::TimerInterrupt< Converter >
Public Functions
-
inline Interrupt(std::string_view name, Converter &converter, std::function<void(Converter&)> handler_function)
Constructor for the Interrupt class.
- Parameters:
name – Name identifier for this interrupt
converter – Reference to the parent converter object
handler_function – Function to be executed when an interrupt is triggered
-
virtual void start() = 0
Starts the interrupt.
-
virtual void stop() = 0
Stops the interrupt.
-
inline Interrupt(std::string_view name, Converter &converter, std::function<void(Converter&)> handler_function)