AHT20.Transport behaviour (aht20 v0.2.1) View Source
Defines a behaviour required for I2C device. Based on Circuits I2C's API.
Link to this section Summary
Link to this section Types
Specs
bus_address() :: 0..127
Specs
bus_name() :: String.t()
Specs
data() :: binary()
Specs
opts() :: [{:retries, non_neg_integer()}]
Link to this section Callbacks
Specs
Specs
read(reference(), bus_address(), integer()) :: {:ok, binary()} | {:error, any()}
Specs
write(reference(), bus_address(), data()) :: :ok | {:error, any()}