AVRTools
A Library for the AVR ATmega328 and ATmega2560 Microcontrollers
Classes | Enumerations
Interrupts Namespace Reference

This namespace bundles various utility classes designed to suppress selected interrupts using the RAII idiom. More...

Classes

class  AllOff
 This class defines an object that disables all interrupts during its lifetime. Interrupt state is restored by the object's destructor when the object goes out of scope. More...
 
class  ExternalOff
 This class defines an object that disables selected external interrupts during its lifetime. The selected external interrupts are restored by the object's destructor when it goes out of scope. More...
 
class  PinChangeOff
 This class defines an object that disables selected pin change interrupts during its lifetime. The selected pin change interrupts are restored by the object's destructor when it goes out of scope. More...
 

Enumerations

enum  ExternalInterrupts {
  kExternalInterrupt0, kExternalInterrupt1, kExternalInterrupt2, kExternalInterrupt3,
  kExternalInterrupt4, kExternalInterrupt5, kExternalInterrupt6, kExternalInterrupt7,
  kExternalInterruptAll
}
 This enum lists the external interrupts that can be suppressed (disabled). To pass more than one external interrupt, simply "or" them. More...
 
enum  PinChangeInterrupts { kPinChangeInterrupt0, kPinChangeInterrupt1, kPinChangeInterrupt2, kPinChangeInterruptAll }
 This enum lists the pin change interrupts that can be suppressed (disabled). To pass more than one pin change interrupt, simply "or" them. More...
 

Detailed Description

This namespace bundles various utility classes designed to suppress selected interrupts using the RAII idiom.

Enumeration Type Documentation

§ ExternalInterrupts

This enum lists the external interrupts that can be suppressed (disabled). To pass more than one external interrupt, simply "or" them.

Enumerator
kExternalInterrupt0 

External interrupt 0.

kExternalInterrupt1 

External interrupt 1.

kExternalInterrupt2 

External interrupt 2 (ATmega2560 only)

kExternalInterrupt3 

External interrupt 3 (ATmega2560 only)

kExternalInterrupt4 

External interrupt 4 (ATmega2560 only)

kExternalInterrupt5 

External interrupt 5 (ATmega2560 only)

kExternalInterrupt6 

External interrupt 6 (ATmega2560 only)

kExternalInterrupt7 

External interrupt 7 (ATmega2560 only)

kExternalInterruptAll 

All external interrupts.

§ PinChangeInterrupts

This enum lists the pin change interrupts that can be suppressed (disabled). To pass more than one pin change interrupt, simply "or" them.

Enumerator
kPinChangeInterrupt0 

Pin change interrupt 0.

kPinChangeInterrupt1 

Pin change interrupt 1.

kPinChangeInterrupt2 

Pin change interrupt 2.

kPinChangeInterruptAll 

All pin change interrupts.