View Source API Reference wafer v1.1.0
Modules
Welcome to Wafer. The funkiest way to write hardware drivers.
A Chip
is a physical peripheral with registers which can be read from and
written to.
Defines a behaviour for connecting to a peripheral.
Implements a safe bytewise data-link-layer which allows the transmission and receiption of arbitrary erlang terms in tiny packets.
Bytewise reception buffer for our data link layer.
A bytewise transmission buffer for our data link layer.
Allows devices to generate a unique identifier.
A connection to a native GPIO pin via Circuits' GPIO driver.
This module implements a simple dispatcher for GPIO interrupts when using
Circuits.GPIO
.
A connection to a chip via Circuits' I2C driver.
A connection to a chip via Circuits's SPI driver.
This module provides a fake driver which you can use in your tests.
Handy functions for formatting bytes, especially for debugging.
A GPIO
is a physical pin which can be read from and written to.
Handy guards which you can use in your code to assert correct values.
A protocol for interacting with I2C devices directly. Most of the time you'll
want to use the Chip
protocol for working with registers, but this is
provided for consistency's sake.
This module provides Wafer's interrupt registry. This allows multiple subscribers to be subscribed to interrupts from many different pins.
This module provides helpful macros for specifying the registers used to communicate with your device.
A protocol for releasing connections. The opposite of Conn
's acquire/1
.
A (very simple) protocol for interacting with SPI connected devices.
Handy functions for dealing with bits and bytes in the wild.