Skip to main content
Visitor II
July 17, 2024
Question

SMBUS STACK_SMBUS_ExecuteCommand on device

  • July 17, 2024
  • 1 reply
  • 697 views

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

    This topic has been closed for replies.

    1 reply

    ST Employee
    July 19, 2024

    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