cancel
Showing results for 
Search instead for 
Did you mean: 

SMBUS STACK_SMBUS_ExecuteCommand on device

VORDO
Associate

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 youimage.png

 

Kind regards

Dominic

1 REPLY 1
Joe WILLIAMS
ST Employee

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