---
name: "i2c_master_recv"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/i2c_master_recv"
---

# i2c\_master\_recv(9)

issue a single I2C message in master receive mode

## 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.

## COPYRIGHT
