Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 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.