huaxiong_ID 2016-03-21 12:55 采纳率: 0%
浏览 7749
已采纳

i2c_transfer通信传输

res = i2c_transfer(client->adapter, rdwr_pa, rdwr_arg.nmsgs);这个函数具体是可以发送和读取数据的吗,还是说只是单单发送数据而已

  • 写回答

1条回答 默认 最新

  • jhy8421 2018-02-07 11:00
    关注

    I think u know the i2c_master_send & i2c_master_recv functions, both calling the i2c_transfer interface, so this func is used to send & write
    msgs to device. As for u'll send or receive msg(s), depend on that the msg(struct i2c_msg) flag(I2C_M_RD, and others means write), please be known, enjoy your day

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?