'\" t .\" Title: i2c_transfer .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: I2C and SMBus Subsystem .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "I2C_TRANSFER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "I2C and SMBus Subsystem" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" i2c_transfer \- execute a single or combined I2C message .SH "SYNOPSIS" .HP \w'int\ i2c_transfer('u .BI "int i2c_transfer(struct\ i2c_adapter\ *\ " "adap" ", struct\ i2c_msg\ *\ " "msgs" ", int\ " "num" ");" .SH "ARGUMENTS" .PP \fIadap\fR .RS 4 Handle to I2C bus .RE .PP \fImsgs\fR .RS 4 One or more messages to execute before STOP is issued to terminate the operation; each message begins with a START\&. .RE .PP \fInum\fR .RS 4 Number of messages to be executed\&. .RE .SH "DESCRIPTION" .PP Returns negative errno, else the number of messages executed\&. .PP Note that there is no requirement that each message be sent to the same slave address, although that is the most common model\&. .SH "COPYRIGHT" .br