AnsweredAssumed Answered

How does Init(LDD_TUserData *UserDataPtr) work

Question asked by Pratiek Bhadranavar on Jan 17, 2015
Latest reply on Jan 18, 2015 by Pratiek Bhadranavar

I have been analysing the generated code from PEx for a while now. The Init() function returns a pointer to the private structure/device structure. Which we then use for all subsequent methods as the first parameter in order to specify which device is being called.

 

BUT - where does the *UserDataPtr come from? I searched in the components ".c" as well as ".h" file. It must be something I overlooked, but now I am really not getting where this pointer comes from. Or is it that a Null Pointer need not be declared and initialized?

 

If you need any more details, please let me know I will post screenshots.

 

Thanks

Outcomes