Skip to main content
Renesas Electronics Europe - Knowledgebase

What is p_context and how do I use it in my code?

Latest Updated:10/04/2016


The SSP user manual reference p_context and says I can use it for "User Defined Callback Context". Does this mean I can assign data to it for use in my callback function?


p_context is the pointer to the function that was executing when an interrupt was triggered. It can be used by ThreadX frameworks to provide thread-safe interrupt handling. This argument shouldn't generally be used in user-defined callback functions.
Suitable Products
  • Was this article helpful?