Dear TI experts
What is the best way to implement current control of LM5177 with a signal (PWM or DAC) coming from MCU?
We need to control the current from the battery between -15A (max charging current) and +15A (max discharge current).
The best solution I have come up with is the one drawn in the picture below. But I realized that maybe IMONOUT only measures current in the positive direction (V_IMONOUT = V_ISNSP − V_ISNSN × gm × R_IMONOUT). If SYNC pin is low at startup, will this also change the polarity/direction of the IMONOUT (in addition to changing the polarity of the current limiter)?

Do you have any other solutions for controlling the current in both positive and negative direction?
Thanks,
Ole