ref: 9778107f65da594f36efc899838d4e73860b3c04
dir: /sys/man/3/twsi/
.TH TWSI 3 .SH NAME twsi - two-wire serial interface (TWSI) and inter-integrated circuit (I²C) interface .SH SYNOPSIS .B bind -a #² /dev .sp 0.3v .B /dev/twsi* .SH DESCRIPTION The .I 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 delivered by reading. Seeking to a given offset before reading or writing causes the .I twsi device to use that offset as a TWSI slave address for a subsequent .IR read (2) or .IR write call. .SH FILES .B #²/twsi* .SH SOURCE .B /sys/src/9/*/devtwsi.c .SH BUGS 10-bit addressed devices are not supported. .PP No slave mode. .PP Setting the bus rate is not supported.