- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a question regarding a this function :
uint32_t SYSTIMER_CreateTimer ( uint32_t period, SYSTIMER_MODE_t mode, SYSTIMER_CALLBACK_t callback, void *args)
And this is an example in how to use it:
TimerId = (uint32_t)SYSTIMER_CreateTimer(ONESEC,SYSTIMER_MODE_PERIODIC (void*)LED_Toggle_EverySec, NULL);
But I don't quite understand if I can use it with a callback function which return value for example (uint16_t *)LED_UART) and do you know if the part "void *args" is for the variable of return of the callback function?
If yes, how will it be writen?
Best regards,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @user8710,
Yes, the return type of the callback function may be defined as per your needs. "void *args" defines the parameter to the callback function.
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @user8710,
Yes, the return type of the callback function may be defined as per your needs. "void *args" defines the parameter to the callback function.
Regards,
Nikhil