PeripheralInterrupt

template<class Converter>
class PeripheralInterrupt : public vslib::Interrupt<Converter>

Public Functions

inline PeripheralInterrupt(std::string_view name, Converter &converter, const int interrupt_id, const InterruptPriority priority, std::function<void(Converter&)> handler_function)

Constructor for PeripheralInterrupt.

Parameters:
  • name – Name identifier for this interrupt

  • converter – Reference to the parent converter object

  • interrupt_id – Platform-dependent interrupt ID

  • priority – Priority level of the interrupt

  • handler_function – Function to be called when the interrupt triggers

inline virtual void start() override

Starts peripheral interrupt.

inline virtual void stop() override

Stops the peripheral interrupt from triggering.