开发者

What's the difference between I2CDevice.CreateReadTransaction() and new I2CDevice.I2CReadTransaction()?

开发者 https://www.devze.com 2023-03-08 18:24 出处:网络
I\'m looking into the .NET MF I2C API, and I\'m getting a bit confused. There seem to be multiple ways to create an I2C transaction.

I'm looking into the .NET MF I2C API, and I'm getting a bit confused. There seem to be multiple ways to create an I2C transaction.

I can either use the I2CDevice.CreateReadTransaction met开发者_StackOverflow社区hod, or simply create a new I2CDevice.I2CReadTransaction object. I'm puzzled as to what the difference is. Both take the same number of arguments.


The CreateReadTransaction returns a I2CReadTransaction object. So the difference is that the CreateReadTransaction is a method and the other is a class object.

0

精彩评论

暂无评论...
验证码 换一张
取 消