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
uint32_tXferOptions=obj->handle.XferOptions; // save XferOptions value, because handle can be modified by HAL, which cause issue in case of NACK from slave
745
+
#endif
746
+
743
747
do {
748
+
#if defined(I2C_OTHER_FRAME)
749
+
if (HAL_I2C_Master_Seq_Transmit_IT(&(obj->handle), dev_address, data, size, XferOptions) ==HAL_OK) {
750
+
#else
744
751
if (HAL_I2C_Master_Transmit_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
752
+
#endif
745
753
ret=I2C_OK;
746
754
// wait for transfer completion
747
755
while ((HAL_I2C_GetState(&(obj->handle)) !=HAL_I2C_STATE_READY)
uint32_tXferOptions=obj->handle.XferOptions; // save XferOptions value, because handle can be modified by HAL, which cause issue in case of NACK from slave
816
+
#endif
817
+
806
818
do {
819
+
#if defined(I2C_OTHER_FRAME)
820
+
if (HAL_I2C_Master_Seq_Receive_IT(&(obj->handle), dev_address, data, size, XferOptions) ==HAL_OK) {
821
+
#else
807
822
if (HAL_I2C_Master_Receive_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
823
+
#endif
808
824
ret=I2C_OK;
809
825
// wait for transfer completion
810
826
while ((HAL_I2C_GetState(&(obj->handle)) !=HAL_I2C_STATE_READY)
0 commit comments