2024-12-04 05:46 PM
Hi everyone,
I am working on an experiment using the STM32G0B1 NUCLEO board to implement the PMBUS slave functionality with the SMBUS middleware.
According to AN4502, the buffer in SMBUS_StackHandleTypeDef *pStackContext is described as being used for IO. I have a question regarding handling master requests. When the master sends a command to read the input voltage, such as PMBC_READ_VIN (0x88), at what point should the application layer populate the buffer with the data so that the master receives the correct value?
If anyone has experience with this or could provide example code, I would greatly appreciate your help.
Thank you!
Solved! Go to Solution.
2024-12-05 11:35 PM - edited 2024-12-05 11:38 PM
2024-12-05 11:35 PM - edited 2024-12-05 11:38 PM
I solved this issue, for example: