0
\$\begingroup\$

I have a STM32F746G-DISCOVERY kit that has a WM8994 (Audio Hub CODEC). I'm learning how to generate a sound from the STM32F746G and send it to the WM8994 via Serial Audio Interface (SAI) to use in my TouchGFX project. I found a driver for WM8994 (stm32-wm8994) but there is no API documentation on how to initialize/use the driver. The Board Support Package (BSP) example for this board doesn't use this driver. Does anyone know if there is API documentation for this driver? or an example that is clear on how to initialize/use it? Thanks.

\$\endgroup\$
8
  • \$\begingroup\$ you need to read the README of that repo you found! \$\endgroup\$ Commented Aug 20, 2023 at 18:31
  • \$\begingroup\$ Description This wm8994 MCU component repository is one element common to all STM32Cube MCU embedded software packages, providing the WM8994 BSP AUDIO component part. \$\endgroup\$ Commented Aug 20, 2023 at 18:31
  • \$\begingroup\$ so, you look inside the wm8994.c and you find API documentation as doxygen comments, directly witth the function they describe. Are you looking for something different? \$\endgroup\$ Commented Aug 20, 2023 at 18:35
  • \$\begingroup\$ Neither the built-in help for each function nor the readme file you mentioned says how to use this library. By looking at the example for another board that uses this library in its BSP I was able to follow the code and see that I need to use WM8994_Init(...) first. But this function takes two pointers. I was able to figure out how to init one of them (WM8994_Init_t) but not the other (WM8994_Object_t). The more I look into the code the more stuff I see that I don't know ... something that should be in the documentation ... if such thing exist. \$\endgroup\$
    – Rodo
    Commented Aug 20, 2023 at 20:02
  • 1
    \$\begingroup\$ IMO, it's not difficult to figure out, but you may find the odd bug or two. \$\endgroup\$ Commented Aug 20, 2023 at 21:07

0

Browse other questions tagged or ask your own question.