Skip to main content
HMüll.4
Senior
May 20, 2022
Solved

CubeMX: how to get data when callback is called?

  • May 20, 2022
  • 1 reply
  • 743 views

Hi,

I'm trying to read data from the SPDIF-input of the STM32F466 using the CubeMX-generated code. The idea is to get one interrupt/callback for every pair of audio samples which arrive. This looks good so far, there is a function HAL_SPDIFRX_RxCpltCallback() which has o be overwritten in own code section.

Now the question is: when this callback is called, how can I get the related data? Is there an other function to get these data or do I have to read some registers directly?

Or more generic: is there a manual available that describes these CubeMX-generated functions?

Thanks!

This topic has been closed for replies.
Best answer by HMüll.4

OK, found it in the structure that is handed over as parameter to the callback - please ignore this question!

1 reply

HMüll.4
HMüll.4AuthorAnswer
Senior
May 20, 2022

OK, found it in the structure that is handed over as parameter to the callback - please ignore this question!