]> git.lizzy.rs Git - plan9front.git/blob - sys/man/3/twsi
namespace(4): fix $home bin paths
[plan9front.git] / sys / man / 3 / twsi
1 .TH TWSI 3 
2 .SH NAME
3 twsi - two-wire serial interface (TWSI) and inter-integrated circuit (I²C) interface
4 .SH SYNOPSIS
5 .B bind -a #² /dev
6 .sp 0.3v
7 .B /dev/twsi*
8 .SH DESCRIPTION
9 The
10 .I twsi
11 device serves a one-level directory containing one file per TWSI or I²C bus.
12 Bytes written are transmitted on the bus;
13 bytes received from the bus are queued and delivered by reading.
14 Seeking to a given offset before reading or writing causes the
15 .I twsi
16 device to use that offset as a TWSI slave address for a subsequent
17 .IR read (2)
18 or
19 .IR write
20 call.
21 .SH FILES
22 .B #²/twsi*
23 .SH SOURCE
24 .B /sys/src/9/*/devtwsi.c
25 .SH BUGS
26 10-bit addressed devices are not supported.
27 .PP
28 No slave mode.
29 .PP
30 Setting the bus rate is not supported.