s32i2c_smbus_write_i2c_block_data(conststructi2c_client*client,u8 command,u8 length,constu8*values){unioni2c_smbus_data data;if(length>I2C_SMBUS_BLOCK_MAX)length=I2C_SMBUS_BLOCK_MAX;data.block[0]=length;memcpy(data.block+1,values,length);returni2c_smbus_xfer(client->adapter,client->addr...
Hi, I need to use I2C to write and read data and I have seen official demo codes. I found that codes will block to wait transfer complete. Blocking type codes may waste mcu resource. So I want to write and read data per 5ms by no waiting and mcu handles other tasks. How can I...
I found that codes will block to wait transfer complete. Blocking type codes may waste mcu resource. So I want to write and read data per 5ms by no waitting and mcu handles other tasks. How can I achive this target? 已解决! 转到解答。 标记: 4146 block i2c BlockCod...