2024-07-17 07:53 AM
Hello everyone
I do not understand how to use the STACK_SMBUS_ExecuteCommand callback function provided by the SMBUS stack (See picture below). The function is called either in receiving data or transmitting data (from the device point of view). Due to the fact that it is the same function for both situations how can I figure out if it was a read or write command?
I defined the CMD_Table with a READ_OR_WRITE cmnd_query. In the callback I receive pStackContext-Pointer. But on the device side the information pStackContext->OpMode is not handled. That's why I have no information if it was a read or write command calling the callback.
Can someone help me out and explain how to use the stack function callback for this purpose?
Thank you
Kind regards
Dominic
2024-07-19 02:33 PM
Hi VORDO
This post has been escalated to the ST Online Support Team for additional assistance. We'll contact you directly.
Kind Regards
Joe
STMicro Support