---
name: "i2c_master_send"
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_send"
---

# i2c\_master\_send(9)

issue a single I2C message in master transmit mode

## NAME

i2c\_master\_send - issue a single I2C message in master transmit mode

## SYNOPSIS

**int i2c\_master\_send(const struct i2c\_client \*** *client***, const char \*** *buf***, int** *count***);**

## ARGUMENTS

*client*

Handle to slave device

*buf*

Data that will be written to the slave

*count*

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

## DESCRIPTION

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

## COPYRIGHT
