'\" t .\" Title: i2c_master_send .\" 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_MASTER_SEND" "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_master_send \- issue a single I2C message in master transmit mode .SH "SYNOPSIS" .HP \w'int\ i2c_master_send('u .BI "int i2c_master_send(const\ struct\ i2c_client\ *\ " "client" ", const\ char\ *\ " "buf" ", int\ " "count" ");" .SH "ARGUMENTS" .PP \fIclient\fR .RS 4 Handle to slave device .RE .PP \fIbuf\fR .RS 4 Data that will be written to the slave .RE .PP \fIcount\fR .RS 4 How many bytes to write, must be less than 64k since msg\&.len is u16 .RE .SH "DESCRIPTION" .PP Returns negative errno, or else the number of bytes written\&. .SH "COPYRIGHT" .br