cancel
Showing results for 
Search instead for 
Did you mean: 

CubeMX: how to get data when callback is called?

HMüll.4
Associate III

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!

1 ACCEPTED SOLUTION

Accepted Solutions
HMüll.4
Associate III

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

View solution in original post

1 REPLY 1
HMüll.4
Associate III

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