Function gx_i2c_write¶
-
int gx_i2c_write(unsigned char bus_id, unsigned char slv_addr, unsigned char *buf, unsigned short len)
i2c发送数据
- 参数
bus_id -- i2c总线id
slv_addr -- i2c slave地址
buf -- 需要发送的数据
len -- 发送数据长度
- Returns 0
成功
- Returns -1
失败
i2c发送数据
bus_id -- i2c总线id
slv_addr -- i2c slave地址
buf -- 需要发送的数据
len -- 发送数据长度
成功
失败