Searched refs:i2c_opt (Results 1 – 1 of 1) sorted by relevance
315 write_offset(int fd, struct options i2c_opt, struct iiccmd *cmd) in write_offset() argument318 if (i2c_opt.off_len > 0) { in write_offset()319 cmd->count = i2c_opt.off_len; in write_offset()320 cmd->buf = (void*)i2c_opt.off_buf; in write_offset()327 i2c_write(int fd, struct options i2c_opt, uint8_t *i2c_buf) in i2c_write() argument330 char buf[i2c_opt.off_len + i2c_opt.count]; in i2c_write()333 cmd.slave = i2c_opt.addr; in i2c_write()338 switch(i2c_opt.mode) { in i2c_write()340 if (write_offset(fd, i2c_opt, &cmd)) in i2c_write()352 cmd.count = i2c_opt.count; in i2c_write()[all …]