On Thu, Dec 08, 2016, Flavio Santes wrote:
After playing a bit with k_timer and the expiry and stop callbacks, IAt least I'm using CONTAINER_OF() to accomplish this. I think that's the
main idea of how these APIs are designed (same with k_work as well). So
you embed these objects in your "user data" struct and the get back your
own struct in the callback with the help of CONTAINER_OF.