CircuitsSim.Device.ADS7138 (circuits_sim v0.1.2)

View Source

MCP23008 8-bit I/O Expander

Small, 8-Channel, 12-Bit ADC with I2C interface, GPIOs, and CRC. Supports addresses 0x10 to 0x17

See the datasheet for details. Many features aren't implemented.

Summary

Types

t()

@type t() :: %CircuitsSim.Device.ADS7138{current: non_neg_integer(), registers: map()}

Functions

child_spec(args)

@spec child_spec(keyword()) :: Supervisor.child_spec()

new()

@spec new() :: %CircuitsSim.Device.ADS7138{current: 0, registers: %{}}