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, Run RFPGM, Remove bond, Factory Settings, and Validate bonds (when [N] is restarted) commands as all of them cause the device to reset or restart. It is also raised at Reset, Unbond + Restart, and Unbond + Factory Settings + Restart.

 

Example

 

 case DpaEvent_DisableInterrupts:

       // ADC Interrupt Enable - off

       ADIE = 0;

                return Carry;

 

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