View Source
APDS9960.Transport
(apds9960 v0.1.0)
The I2C transport to communiate with a device.
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()})
}