TWSI(3)
NAME
twsi - two-wire serial interface (TWSI) and inter-integrated circuit (IC) interface
SYNOPSIS
bind -a # /dev /dev/twsi∗
DESCRIPTION
The twsi device serves a one-level directory containing one file per TWSI or IC bus. Bytes written are transmitted on the bus; bytes received from the bus are queued and delivered 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.
Plan 9 — March 14, 2011