AVRTools
A Library for the AVR ATmega328 and ATmega2560 Microcontrollers
Public Member Functions | List of all members
Interrupts::AllOff Class Reference

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...

#include <InterruptUtils.h>

Public Member Functions

 AllOff ()
 Suppress all interrupts when the object is instantiated.
 
 ~AllOff ()
 Re-enable interrupts, restoring the interrupt state as it was when the object was instantiated.
 

Detailed Description

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.


The documentation for this class was generated from the following file: