One of the most common applications for using function pointers is in task schedulers. Every embedded system contains some type of task scheduler whether it is a simple round robin loop or a state of ...
This may fall under the heading of "Don't do that" but did cause me to be slightly curious.<BR><BR>What would happen if you say, created a pointer to a function that ...
Delegates are type safe function pointers *with an optional this pointer* thus no need to pass one round yourself. Obviously their utility is much enhanced in contract to C++ by virtue of being part ...
Raindrops on roses, and whiskers on kittens. They’re ok, but state machines are absolutely on our short list of favorite things. There are probably as many ways to implement a state machine as there ...
Embedded C developers shy away from C++ out of concern for performance. The class construct is one of their main concerns. My previous article Code Craft – Embedding C++: Classes explored whether ...
Callbacks are references to executable code that higher levels of software pass into a function. These callbacks have the ability to greatly increase the portability and reuse of embedded software, ...