SatCat5
satcat5::irq::Adapter Class Reference

Detailed Description

Adapter connects a hardware interrupt to any OnDemand object.

SatCat5 interrupt-API concepts.

This is often used with the poll::timekeeper object (polling.h), linking a hardware timer interrupt to the SatCat5 polling system. It can also be used to facilitate deferred interrupt handling.

Definition at line 222 of file satcat5/interrupts.h.

#include <interrupts.h>

Inheritance diagram for satcat5::irq::Adapter:
[legend]
Collaboration diagram for satcat5::irq::Adapter:
[legend]

Public Member Functions

 Adapter (const char *lbl, int irq, satcat5::poll::OnDemand *obj)
 

Public Attributes

const char *const m_label
 Human-readable label, for debugging.
 
const int m_irq_idx
 IRQ index for this interrupt handler.
 

Protected Member Functions

void irq_event () override
 Method called whenever an interrupt is triggered.
 

Protected Attributes

satcat5::poll::OnDemand *const m_obj
 
u32 m_max_irqtime
 Statistics tracking for time consumed by this interrupt.
 

Private Attributes

satcat5::irq::Handlerm_next
 

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