summaryrefslogtreecommitdiff
path: root/commandline/man/vusb-i2cset.1
blob: 797a7143431bfe8263dad5c282622a4a076eefde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.Dd Jule 28, 2013
.Dt VUSB-I2CSET 1
.Os
.
.
.Sh NAME
.
.Nm vusb-i2cset
.Nd send data to an I2C device
.
.
.Sh SYNOPSIS
.
.Nm
.Ar address
.Ar data ...
.
.
.Sh VERSION
.
This manual documents
.Nm
UNRELEASED
.
.
.Sh DESCRIPTION
.
.Nm
sends bytes to an I2C device. It transmits a START condition, then the
.Ar address
with the R/W bit set to write, and then all specified bytes.
.
.Ar address
and
.Ar data
are decimal by default, use the
.Qq 0x
prefix for hexadecimal numbers
.
.Sh EXIT STATUS
.
.Bl -tag -width indnet
.
.It 0
.
after transmitting the
.Ar address ,
an ACK was received
.
.It 1
.
after transmitting the
.Ar address ,
a NAK was received
.
.It 2
.
Bad input (not a number)
.
.El
.
.

.Sh AUTHOR
.
Copyright (C) 2013 by Birte Friesel
.Aq derf@finalrewind.org
.
.
.Sh LICENSE
.
to be determined (BSD-ish)