SatCat5
satcat5::irq::Shared Class Referencefinal

Detailed Description

Shared interrupt handler calls all children for any parent event.

Use this if several irq::Handler objects share a hardware interrupt. (Children should all be registered with index = IRQ_NONE.)

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

#include <interrupts.h>

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

Public Member Functions

 Shared (const char *lbl, int irq)
 
void add (satcat5::irq::Handler *child)
 

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::util::List< satcat5::irq::Handlerm_list
 
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: