|
SatCat5
|
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>
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::Handler * | m_next |