Improving Your Callback Game

Callbacks abound in embedded system design. You can find all sorts of use cases: Registering for a notification when a specific event happens (e.g. starting to record video) Registering for a notification when an asynchronous event has completed (e.g. asynchronous USB transfer complete callback, DMA transfer complete callback) Callbacks as handlers for interrupt, timer, and other OS services …