You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the above line of code has a bug. I think it should be "retval = set_bits_low(mpsse, mpsse->pidle);".
By using pstart you are forcing the bus to a start condition when toggling the GPIO's after a stop condition. For example what if you are controlling a reset pin with one of the GPIOL signals. When you go to de-assert reset you would force a start condition on the bus. Many hardware devices have a time requirement from reset de-assertion to the start of any bus transfers. However if you use pidle, you keep the bus in the idle state it's already in since you can only use gpio_write after a stop condition when in I2C or SPI modes.
The text was updated successfully, but these errors were encountered:
libmpsse/src/support.c
Line 293 in 8e1ce70
I think the above line of code has a bug. I think it should be "retval = set_bits_low(mpsse, mpsse->pidle);".
By using pstart you are forcing the bus to a start condition when toggling the GPIO's after a stop condition. For example what if you are controlling a reset pin with one of the GPIOL signals. When you go to de-assert reset you would force a start condition on the bus. Many hardware devices have a time requirement from reset de-assertion to the start of any bus transfers. However if you use pidle, you keep the bus in the idle state it's already in since you can only use gpio_write after a stop condition when in I2C or SPI modes.
The text was updated successfully, but these errors were encountered: