'\" t .\" Title: i2c_smbus_read_block_data .\" 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_SMBUS_READ_BLOCK" "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_smbus_read_block_data \- SMBus \(lqblock read\(rq protocol .SH "SYNOPSIS" .HP \w's32\ i2c_smbus_read_block_data('u .BI "s32 i2c_smbus_read_block_data(const\ struct\ i2c_client\ *\ " "client" ", u8\ " "command" ", u8\ *\ " "values" ");" .SH "ARGUMENTS" .PP \fIclient\fR .RS 4 Handle to slave device .RE .PP \fIcommand\fR .RS 4 Byte interpreted by slave .RE .PP \fIvalues\fR .RS 4 Byte array into which data will be read; big enough to hold the data returned by the slave\&. SMBus allows at most 32 bytes\&. .RE .SH "DESCRIPTION" .PP This executes the SMBus \(lqblock read\(rq protocol, returning negative errno else the number of data bytes in the slave\*(Aqs response\&. .PP Note that using this function requires that the client\*(Aqs adapter support the I2C_FUNC_SMBUS_READ_BLOCK_DATA functionality\&. Not all adapter drivers support this; its emulation through I2C messaging relies on a specific mechanism (I2C_M_RECV_LEN) which may not be implemented\&. .SH "COPYRIGHT" .br