Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ (3) — Plan9 4th Edition

Media Vault

Software Library

Restoration Projects

Artifacts Sought

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 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

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026