Add the possibility to change the called function

Add the possibility to change the called function.
The new function "setFunc()" allow us to change the called function
although the interrupt is already launch.