FreeRTOScpp
Loading...
Searching...
No Matches
CallBack.cpp File Reference

FreeRTOS Call back wrapper. More...

#include <CallBack.h>
Include dependency graph for CallBack.cpp:

Functions

void voidCallbackU32 (void *cb, uint32_t parm)
 Define a "C" Callback trampline suitable for Timer Callbacks.
 

Detailed Description

FreeRTOS Call back wrapper.

This file provides the C Trampoline function for the Callback Wrappers

Author
Richard Damon richa.nosp@m.rd.d.nosp@m.amon@.nosp@m.gmai.nosp@m.l.com

MIT License:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

It is requested (but not required by license) that any bugs found or improvements made be shared, preferably to the author.

Function Documentation

◆ voidCallbackU32()

void voidCallbackU32 ( void * cb,
uint32_t parm )

Define a "C" Callback trampline suitable for Timer Callbacks.

This is a "C" API function that takes a void* and a uint32_t points, like a FreeRTOS Timer callback that makes that FreeRTOS callback link to our CallBack templates using the "C" Callbacks void* parameter. This allows a CallBack<void, uint32_t> to be used for a timer

Parameters
cbThe Callback Object to use
parmThe Parameter to send to the Callback

References CallBack< Tr, Tp1, Tp2 >::callback().

Referenced by CallBack< void, uint32_t >::callback().

Here is the call graph for this function:
Here is the caller graph for this function: