ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
Interrupts.h File Reference

Interrupt sources, vector numbers, and program addresses. More...

#include <stdint.h>
#include "Config.h"
Include dependency graph for Interrupts.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  atmega328p
 Device-specific definitions for the ATmega328P.
namespace  atmega328p::interrupts
 Interrupt vector table definitions.

Enumerations

enum class  atmega328p::interrupts::Source : uint8_t {
  atmega328p::interrupts::INT0 = 0 , atmega328p::interrupts::INT1 = INT0 + 1 , atmega328p::interrupts::PCINT0 = INT1 + 1 , atmega328p::interrupts::PCINT1 = PCINT0 + 1 ,
  atmega328p::interrupts::PCINT2 = PCINT1 + 1 , atmega328p::interrupts::Watchdog = PCINT2 + 1 , atmega328p::interrupts::Timer2CompareA = Watchdog + 1 , atmega328p::interrupts::Timer2CompareB = Timer2CompareA + 1 ,
  atmega328p::interrupts::Timer2Overflow = Timer2CompareB + 1 , atmega328p::interrupts::Timer1Capture = Timer2Overflow + 1 , atmega328p::interrupts::Timer1CompareA = Timer1Capture + 1 , atmega328p::interrupts::Timer1CompareB = Timer1CompareA + 1 ,
  atmega328p::interrupts::Timer1Overflow = Timer1CompareB + 1 , atmega328p::interrupts::Timer0CompareA = Timer1Overflow + 1 , atmega328p::interrupts::Timer0CompareB = Timer0CompareA + 1 , atmega328p::interrupts::Timer0Overflow = Timer0CompareB + 1 ,
  atmega328p::interrupts::SPITransferComplete = Timer0Overflow + 1 , atmega328p::interrupts::USARTReceiveComplete = SPITransferComplete + 1 , atmega328p::interrupts::USARTDataRegisterEmpty = USARTReceiveComplete + 1 , atmega328p::interrupts::USARTTransmitComplete = USARTDataRegisterEmpty + 1 ,
  atmega328p::interrupts::ADCConversionComplete = USARTTransmitComplete + 1 , atmega328p::interrupts::EEPROMReady = ADCConversionComplete + 1 , atmega328p::interrupts::AnalogComparator = EEPROMReady + 1 , atmega328p::interrupts::TWI = AnalogComparator + 1 ,
  atmega328p::interrupts::SPMReady = TWI + 1
}
 Interrupt sources supported by the device. More...
enum class  atmega328p::interrupts::Vector : uint8_t {
  atmega328p::interrupts::Reset = 1 , atmega328p::interrupts::INT0 = 2 , atmega328p::interrupts::INT1 = 3 , atmega328p::interrupts::PCINT0 = 4 ,
  atmega328p::interrupts::PCINT1 = 5 , atmega328p::interrupts::PCINT2 = 6 , atmega328p::interrupts::Watchdog = 7 , atmega328p::interrupts::Timer2CompareA = 8 ,
  atmega328p::interrupts::Timer2CompareB = 9 , atmega328p::interrupts::Timer2Overflow = 10 , atmega328p::interrupts::Timer1Capture = 11 , atmega328p::interrupts::Timer1CompareA = 12 ,
  atmega328p::interrupts::Timer1CompareB = 13 , atmega328p::interrupts::Timer1Overflow = 14 , atmega328p::interrupts::Timer0CompareA = 15 , atmega328p::interrupts::Timer0CompareB = 16 ,
  atmega328p::interrupts::Timer0Overflow = 17 , atmega328p::interrupts::SPITransferComplete = 18 , atmega328p::interrupts::USARTReceiveComplete = 19 , atmega328p::interrupts::USARTDataRegisterEmpty = 20 ,
  atmega328p::interrupts::USARTTransmitComplete = 21 , atmega328p::interrupts::ADCConversionComplete = 22 , atmega328p::interrupts::EEPROMReady = 23 , atmega328p::interrupts::AnalogComparator = 24 ,
  atmega328p::interrupts::TWI = 25 , atmega328p::interrupts::SPMReady = 26
}
 Vector slot numbers, including Reset. More...
enum class  atmega328p::interrupts::WordAddress : uint8_t {
  atmega328p::interrupts::Reset = 0x00 , atmega328p::interrupts::INT0 = 0x02 , atmega328p::interrupts::INT1 = 0x04 , atmega328p::interrupts::PCINT0 = 0x06 ,
  atmega328p::interrupts::PCINT1 = 0x08 , atmega328p::interrupts::PCINT2 = 0x0A , atmega328p::interrupts::Watchdog = 0x0C , atmega328p::interrupts::Timer2CompareA = 0x0E ,
  atmega328p::interrupts::Timer2CompareB = 0x10 , atmega328p::interrupts::Timer2Overflow = 0x12 , atmega328p::interrupts::Timer1Capture = 0x14 , atmega328p::interrupts::Timer1CompareA = 0x16 ,
  atmega328p::interrupts::Timer1CompareB = 0x18 , atmega328p::interrupts::Timer1Overflow = 0x1A , atmega328p::interrupts::Timer0CompareA = 0x1C , atmega328p::interrupts::Timer0CompareB = 0x1E ,
  atmega328p::interrupts::Timer0Overflow = 0x20 , atmega328p::interrupts::SPITransferComplete = 0x22 , atmega328p::interrupts::USARTReceiveComplete = 0x24 , atmega328p::interrupts::USARTDataRegisterEmpty = 0x26 ,
  atmega328p::interrupts::USARTTransmitComplete = 0x28 , atmega328p::interrupts::ADCConversionComplete = 0x2A , atmega328p::interrupts::EEPROMReady = 0x2C , atmega328p::interrupts::AnalogComparator = 0x2E ,
  atmega328p::interrupts::TWI = 0x30 , atmega328p::interrupts::SPMReady = 0x32
}
 Word addresses of the interrupt vectors. More...
enum  : uint8_t { atmega328p::interrupts::vector_count = 26 , atmega328p::interrupts::source_count = 25 , atmega328p::interrupts::vector_size_words = 2 , atmega328p::interrupts::vector_size_bytes = 4 }

Detailed Description

Interrupt sources, vector numbers, and program addresses.