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.
Link to this section Types
Link to this type
device()
View Source
device()
View Source
device() :: String.t()
device() :: String.t()
Device to read from, defaults to spidev0.0
Link to this type
implementation()
View Source
implementation()
View Source
implementation() :: module()
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()
View Source
spi_transfer_payload() :: binary()
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()
View Source
t() :: %ExWindspeed.Options{
device: device(),
implementation: implementation(),
spi_transfer_payload: spi_transfer_payload()
}
t() :: %ExWindspeed.Options{ device: device(), implementation: implementation(), spi_transfer_payload: spi_transfer_payload() }
Link to this section Functions
Link to this function
get()
View Source
get()
View Source
get() :: t()
get() :: t()
Gets configuration