C Programming Callbacks

C Programming Callbacks

This class covers Callbacks in C which allow you to create more flexible and modular functions and enable you to separate hardware and software operations. (Jan 2023)

rate limit

Code not recognized.

About this course

Callback functionality is an important concept in embedded programming. Callbacks allow you to create more flexible and modular functions and enable you to separate hardware and software operations. They also allow for multiple programmers to work on a project and provide code to be combined with the main application program. You can use different callback implementations to reduce your code execution bandwidth and enable faster and more flexible response to any microcontroller pin or peripheral condition. In this course, you will be able to explain the components of a callback. You will be able to use callbacks in both polled and interrupt environments. You will learn how to create library and object files that can be incorporated into your application program with the use of callbacks. You will be able to construct very flexible callback structures. Callbacks are a powerful application of pointers that access functions, so you do need to have a good understanding of function pointers and the C programming language.

Curriculum140 min

  • Syllabus
  • Introduction 5 min
  • Callback Basics
  • What Is A Callback? 5 min
  • Callback Components 5 min
  • Polled Callback Example 3 min
  • Lab 1 13 min
  • Callbacks with Interrupts
  • Callbacks with Interrupt Assist 5 min
  • Lab 2 25 min
  • Callbacks Executed From Interrupts 7 min
  • Lab 3 9 min
  • Callbacks with Multiple Project Files
  • Callbacks with Libraries and Object Files 7 min
  • Lab 4 13 min
  • Callbacks with Hardware Drivers 6 min
  • Lab 5 13 min
  • Flexible Callbacks Setup
  • Callbacks with Setups Like Harmony/MCC 9 min
  • Lab 6 16 min
  • Additional Resources
  • Resources
  • Your Feedback
  • We need Your Feedback!

About this course

Callback functionality is an important concept in embedded programming. Callbacks allow you to create more flexible and modular functions and enable you to separate hardware and software operations. They also allow for multiple programmers to work on a project and provide code to be combined with the main application program. You can use different callback implementations to reduce your code execution bandwidth and enable faster and more flexible response to any microcontroller pin or peripheral condition. In this course, you will be able to explain the components of a callback. You will be able to use callbacks in both polled and interrupt environments. You will learn how to create library and object files that can be incorporated into your application program with the use of callbacks. You will be able to construct very flexible callback structures. Callbacks are a powerful application of pointers that access functions, so you do need to have a good understanding of function pointers and the C programming language.

Curriculum140 min

  • Syllabus
  • Introduction 5 min
  • Callback Basics
  • What Is A Callback? 5 min
  • Callback Components 5 min
  • Polled Callback Example 3 min
  • Lab 1 13 min
  • Callbacks with Interrupts
  • Callbacks with Interrupt Assist 5 min
  • Lab 2 25 min
  • Callbacks Executed From Interrupts 7 min
  • Lab 3 9 min
  • Callbacks with Multiple Project Files
  • Callbacks with Libraries and Object Files 7 min
  • Lab 4 13 min
  • Callbacks with Hardware Drivers 6 min
  • Lab 5 13 min
  • Flexible Callbacks Setup
  • Callbacks with Setups Like Harmony/MCC 9 min
  • Lab 6 16 min
  • Additional Resources
  • Resources
  • Your Feedback
  • We need Your Feedback!