Skip to main content
Knowledgebase
Home
Renesas India - Knowledgebase

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

Latest Updated:10/04/2016

Question:

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?

Answer:

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
Synergy
  • Was this article helpful?