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
+
719
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
720
751
if (HAL_I2C_Master_Transmit_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
752
+
#endif
721
753
ret=I2C_OK;
722
754
// wait for transfer completion
723
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
+
783
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
784
822
if (HAL_I2C_Master_Receive_IT(&(obj->handle), dev_address, data, size) ==HAL_OK) {
823
+
#endif
785
824
ret=I2C_OK;
786
825
// wait for transfer completion
787
826
while ((HAL_I2C_GetState(&(obj->handle)) !=HAL_I2C_STATE_READY)
sentence=Enables serial communication on any digital pin.
6
+
paragraph=The SoftwareSerial library has been developed to allow serial communication on any digital pin of the board, using software to replicate the functionality of the hardware UART. It is possible to have multiple software serial ports.
0 commit comments