TWSI(3) TWSI(3)
NAME
twsi - two-wire serial interface (TWSI) and inter-integrated
circuit (I²C) interface
SYNOPSIS
bind -a #² /dev
/dev/twsi*
DESCRIPTION
The twsi device serves a one-level directory containing one
file per TWSI or I²C bus. Bytes written are transmitted on
the bus; bytes received from the bus are queued and deliv-
ered by reading. Seeking to a given offset before reading
or writing causes the twsi device to use that offset as a
TWSI slave address for a subsequent read(2) or write call.
FILES
#²/twsi*
SOURCE
/sys/src/9/*/devtwsi.c
BUGS
10-bit addressed devices are not supported.
No slave mode.
Setting the bus rate is not supported.