开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜