ExWindspeed v0.1.0-beta ExWindspeed.Options View Source

Configuration module built from Application.get_all_env/1.

Link to this section Summary

Types

Device to read from, defaults to spidev0.0

Specifies which implementation module to use.

Bitstring to send to the MCP3008 to instruct it which channel to read.

t()

Functions

Gets configuration

Link to this section Types

Device to read from, defaults to spidev0.0

Link to this type

implementation() View Source
implementation() :: module()

Specifies which implementation module to use.

Current choices are:

ExWindspeed.Platform.Host.SensorImpl
ExWindspeed.Platform.RPI.SensorImpl - Default

Custom modules may be used as long as they implement the ExWindspeed.Sensor behaviour.

Link to this type

spi_transfer_payload() View Source
spi_transfer_payload() :: binary()

Bitstring to send to the MCP3008 to instruct it which channel to read.

Defaults to channel 0

<<0x01, 0x80, 0x00>>
Link to this type

t() View Source
t() :: %ExWindspeed.Options{
  device: device(),
  implementation: implementation(),
  spi_transfer_payload: spi_transfer_payload()
}

Link to this section Functions

Gets configuration