public interface DacGpioProvider extends GpioProvider
This interface defines the required interfaces for a DAC GPIO provider. (digital to analog converter chip)
Modifier and Type | Method and Description |
---|---|
double |
getMaxSupportedValue()
Get the maximum supported analog value for the ADC implementation.
|
double |
getMinSupportedValue()
Get the minimum supported analog value for the ADC implementation.
|
Number |
getShutdownValue(GpioPinAnalogOutput pin)
Get the shutdown/terminate value that the DAC should apply to the given GPIO pin
when the class is destroyed/terminated.
|
Number |
getShutdownValue(Pin pin)
Get the shutdown/terminate value that the DAC should apply to the given GPIO pin
when the class is destroyed/terminated.
|
void |
setPercentValue(GpioPinAnalogOutput pin,
Number percent)
Set the current analog value as a percentage of the available range instead of a raw value.
|
void |
setPercentValue(Pin pin,
Number percent)
Set the current analog value as a percentage of the available range instead of a raw value.
|
void |
setShutdownValue(Number value,
GpioPinAnalogOutput... pin)
Set the shutdown/terminate value that the DAC should apply to the given GPIO pin
when the class is destroyed/terminated.
|
void |
setShutdownValue(Number value,
Pin... pin)
Set the shutdown/terminate value that the DAC should apply to the given GPIO pin
when the class is destroyed/terminated.
|
void |
setValue(Pin pin,
Number value)
Set the requested analog output pin's conversion value.
|
addListener, export, export, getMode, getName, getPullResistance, getPwm, getState, getValue, hasPin, isExported, isShutdown, removeAllListeners, removeListener, setMode, setPullResistance, setPwm, setPwmRange, setState, setValue, shutdown, unexport
void setPercentValue(Pin pin, Number percent)
void setPercentValue(GpioPinAnalogOutput pin, Number percent)
void setValue(Pin pin, Number value)
pin
- to get conversion values forvalue
- analog output pin conversion valuedouble getMinSupportedValue()
double getMaxSupportedValue()
void setShutdownValue(Number value, GpioPinAnalogOutput... pin)
value
- the shutdown value to apply to the given pin(s)pin
- analog output pin (vararg: one or more pins)Number getShutdownValue(GpioPinAnalogOutput pin)
pin
- analog output pinvoid setShutdownValue(Number value, Pin... pin)
value
- the shutdown value to apply to the given pin(s)pin
- analog output pin (vararg: one or more pins)Copyright © 2012–2016 Pi4J. All rights reserved.