blob: 299b8cafcea9bcdff7b3a837edf5ee0b17a95692 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
<table class="head">
<tr>
<td class="head-ltitle">I2CTINYUSB(4)</td>
<td class="head-vol">Device Drivers Manual</td>
<td class="head-rtitle">I2CTINYUSB(4)</td>
</tr>
</table>
<div class="manual-text">
<section class="Sh">
<h1 class="Sh" id="NAME"><a class="permalink" href="#NAME">NAME</a></h1>
<p class="Pp"><code class="Nm">i2ctinyusb</code> —
<span class="Nd">driver for a USB / I2C bridge device</span></p>
</section>
<section class="Sh">
<h1 class="Sh" id="SYNOPSIS"><a class="permalink" href="#SYNOPSIS">SYNOPSIS</a></h1>
<p class="Pp">To compile this driver into the kernel, place the following lines
in your kernel configuration file:</p>
<div class="Bd Pp Bd-indent"><code class="Cd">device i2ctinyusb</code>
<br/>
<code class="Cd">device usb</code>
<br/>
<code class="Cd">device iicbus</code></div>
<p class="Pp">Alternatively, to load the driver as a module at boot time, place
the following line in <a class="Xr">loader.conf(5)</a>:</p>
<div class="Bd Pp Bd-indent Li">
<pre>i2ctinyusb_load="YES"</pre>
</div>
</section>
<section class="Sh">
<h1 class="Sh" id="DESCRIPTION"><a class="permalink" href="#DESCRIPTION">DESCRIPTION</a></h1>
<p class="Pp">The <code class="Nm">i2ctinyusb</code> driver provides support for
the device designed by Till Harbaum known as i2c-tiny-usb. This is initially
a very simple circuit built with an Atmel AVR ATtiny45, but a Raspberry Pi
Pico (RP2040) implementation also exists.</p>
<p class="Pp">The <code class="Nm">i2ctinyusb</code> driver creates a
<a class="Xr">iicbus(4)</a> child bus to expose the iic functions, enabling
I2C sensors, converters and displays to be connected to any computer with a
USB port.</p>
<p class="Pp">More information about this device can be found at:</p>
<div class="Bd Pp Bd-indent Li">
<pre>https://github.com/harbaum/I2C-Tiny-USB</pre>
</div>
<p class="Pp">and (for the Raspberry Pi Pico version):</p>
<div class="Bd Pp Bd-indent Li">
<pre>https://github.com/Nicolai-Electronics/rp2040-i2c-interface</pre>
</div>
<p class="Pp">The I2C controller supports read and write transactions with up to
1024 bytes of data, and a write followed by the repeated start followed by a
read transactions up to 1024 bytes. Zero length transfers are not
supported.</p>
</section>
<section class="Sh">
<h1 class="Sh" id="SEE_ALSO"><a class="permalink" href="#SEE_ALSO">SEE
ALSO</a></h1>
<p class="Pp"><a class="Xr">iicbus(4)</a>, <a class="Xr">usb(4)</a></p>
</section>
<section class="Sh">
<h1 class="Sh" id="HISTORY"><a class="permalink" href="#HISTORY">HISTORY</a></h1>
<p class="Pp">The <code class="Nm">i2ctinyusb</code> driver and this manual page
was written by <span class="An">Denis Bodor</span>
<<a class="Mt" href="mailto:dbodor@rollmops.ninja">dbodor@rollmops.ninja</a>>.</p>
</section>
</div>
<table class="foot">
<tr>
<td class="foot-date">February 18, 2024</td>
<td class="foot-os">FreeBSD 15.0</td>
</tr>
</table>
|