Name

i2c_master_recv — issue a single I2C message in master receive mode

Synopsis

int i2c_master_recv (const struct i2c_client * client,
 char * buf,
 int count);
 

Arguments

client

Handle to slave device

buf

Where to store data read from slave

count

How many bytes to read, must be less than 64k since msg.len is u16

Description

Returns negative errno, or else the number of bytes read.