SatCat5
satcat5::sam::HandlerSAMV71 Class Referenceabstract

Detailed Description

Interrupt handler interface for the Microchip SAM V71.

This class is needed to apply NVIC_USER_IRQ_OFFSET when creating SAMV71 interrupt handlers. SatCat does not allow negative IRQ nums, and the SAMV71 has a few Ex: SysTick_IRQn. So when creating the Handlers NVIC_USER_IRQ_OFFSET is applied to bring this number to be positive. The controller uses this value to revert the offset when attempting to set the ISR vector for the given interrupt.

Definition at line 19 of file interrupt_handler.h.

#include <interrupt_handler.h>

Inheritance diagram for satcat5::sam::HandlerSAMV71:
[legend]
Collaboration diagram for satcat5::sam::HandlerSAMV71:
[legend]

Public Member Functions

 HandlerSAMV71 (const char *lbl, int irq)
 

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

virtual void irq_event ()=0
 Method called whenever an interrupt is triggered.
 

Protected Attributes

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: