Find/Set Interrupt State

I see functions like enable and disable, but I need to know the current state.

Eg. If interrupts are enabled at the start of a particular function, disable them for the duration of the function, but if the interrupts are disabled, they must stay disabled.

More questions in this forum