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
-
747
743
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
751
744
if (HAL_I2C_Master_Transmit_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
752
-
#endif
753
745
ret=I2C_OK;
754
746
// wait for transfer completion
755
747
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
-
818
806
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
822
807
if (HAL_I2C_Master_Receive_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
823
-
#endif
824
808
ret=I2C_OK;
825
809
// wait for transfer completion
826
810
while ((HAL_I2C_GetState(&(obj->handle)) !=HAL_I2C_STATE_READY)
0 commit comments