PreviousNext
Disable Interrupts
Help > Custom DPA Handler > Events > Disable Interrupts

The event is called when the device needs all hardware interrupts to be disabled. Such a moment occurs at Reset, Restart, LoadCode, Remove bond, and Run RFPGM commands as all of them cause the device to reset or restart.

 

Example

 

 case DpaEvent_DisableInterrupts:

       // ADC Interrupt Enable - off

       ADIE = 0;

                return Carry;

 

☼ See example code CustomDpaHandler-Timer.c for more details.