View Source APDS9960.Transport (apds9960 v0.1.0)

The I2C transport to communiate with a device.

Link to this section Summary

Link to this section Types

Specs

t() :: %APDS9960.Transport{
  address: 0..127,
  read_fn: (... -> {:ok, binary()} | {:error, any()}),
  ref: reference(),
  write_fn: (... -> :ok | {:error, any()}),
  write_read_fn: (... -> {:ok, binary()} | {:error, any()})
}

Link to this section Functions

Specs

new(reference(), 0..127) :: t()
new(binary(), 0..127) :: t()