This routine installs an asynchronous callback function for the given FuncPtr.
Prototype
void XTimer_SetHandler(XTimer_TickHandler FuncPtr, void *CallBackRef, u8 Priority);
Parameters
The following table lists the XTimer_SetHandler
function arguments.
Type | Member | Description |
---|---|---|
XTimer_TickHandler
|
FuncPtr | is the address of the callback function. |
void * | CallBackRef | is a user data item that will be passed to the callback function when it is invoked. |
u8 | Priority | - Priority for the interrupt |