term% cat index.txt TWSI(3) Library Functions Manual 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 re‐
ceived 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.
TWSI(3)