XTimer_SetHandler - 2023.1 English

Standalone Library Documentation: BSP and Libraries Document Collection (UG643)

Document ID
UG643
Release Date
2023-05-16
Version
2023.1 English

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.

Table 1. XTimer_SetHandler 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

Returns

None