CubeMX: how to get data when callback is called?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-19 11:47 PM
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!
Solved! Go to Solution.
- Labels:
-
STM32Cube MCU Packages
-
STM32CubeMX
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-19 11:49 PM
OK, found it in the structure that is handed over as parameter to the callback - please ignore this question!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-19 11:49 PM
OK, found it in the structure that is handed over as parameter to the callback - please ignore this question!
