public class GpioControllerImpl extends Object implements GpioController
Constructor and Description |
---|
GpioControllerImpl()
Default Constructor
|
GpioControllerImpl(GpioProvider provider)
Default Constructor
|
public GpioControllerImpl()
public GpioControllerImpl(GpioProvider provider)
public Collection<GpioPin> getProvisionedPins()
getProvisionedPins
in interface GpioController
public void unexportAll()
unexportAll
in interface GpioController
public void export(PinMode mode, GpioPin... pin)
export
in interface GpioController
public void export(PinMode mode, PinState defaultState, GpioPin... pin)
export
in interface GpioController
public boolean isExported(GpioPin... pin)
isExported
in interface GpioController
pin
- A value of 'true' is returned if the requested pin is exported.
public void unexport(GpioPin... pin)
unexport
in interface GpioController
public PinMode getMode(GpioPin pin)
getMode
in interface GpioController
public boolean isMode(PinMode mode, GpioPin... pin)
isMode
in interface GpioController
public void setMode(PinMode mode, GpioPin... pin)
setMode
in interface GpioController
public void setPullResistance(PinPullResistance resistance, GpioPin... pin)
setPullResistance
in interface GpioController
public PinPullResistance getPullResistance(GpioPin pin)
getPullResistance
in interface GpioController
public boolean isPullResistance(PinPullResistance resistance, GpioPin... pin)
isPullResistance
in interface GpioController
public void high(GpioPinDigitalOutput... pin)
high
in interface GpioController
public void low(GpioPinDigitalOutput... pin)
low
in interface GpioController
public boolean isHigh(GpioPinDigital... pin)
isHigh
in interface GpioController
public boolean isLow(GpioPinDigital... pin)
isLow
in interface GpioController
public void toggle(GpioPinDigitalOutput... pin)
toggle
in interface GpioController
public void pulse(long milliseconds, GpioPinDigitalOutput... pin)
pulse
in interface GpioController
public void setState(PinState state, GpioPinDigitalOutput... pin)
setState
in interface GpioController
public void setState(boolean state, GpioPinDigitalOutput... pin)
setState
in interface GpioController
public PinState getState(GpioPinDigital pin)
getState
in interface GpioController
public boolean isState(PinState state, GpioPinDigital... pin)
isState
in interface GpioController
public void setValue(double value, GpioPinAnalogOutput... pin)
setValue
in interface GpioController
public double getValue(GpioPinAnalog pin)
getValue
in interface GpioController
public void addListener(GpioPinListener listener, GpioPinInput... pin)
addListener
in interface GpioController
public void addListener(GpioPinListener[] listeners, GpioPinInput... pin)
addListener
in interface GpioController
public void removeListener(GpioPinListener listener, GpioPinInput... pin)
removeListener
in interface GpioController
public void removeListener(GpioPinListener[] listeners, GpioPinInput... pin)
removeListener
in interface GpioController
public void removeAllListeners()
removeAllListeners
in interface GpioController
public void addTrigger(GpioTrigger trigger, GpioPinInput... pin)
addTrigger
in interface GpioController
public void addTrigger(GpioTrigger[] triggers, GpioPinInput... pin)
addTrigger
in interface GpioController
public void removeTrigger(GpioTrigger trigger, GpioPinInput... pin)
removeTrigger
in interface GpioController
public void removeTrigger(GpioTrigger[] triggers, GpioPinInput... pin)
removeTrigger
in interface GpioController
public void removeAllTriggers()
removeAllTriggers
in interface GpioController
public GpioPin provisionPin(GpioProvider provider, Pin pin, PinMode mode)
provisionPin
in interface GpioController
public GpioPin provisionPin(GpioProvider provider, Pin pin, String name, PinMode mode)
provisionPin
in interface GpioController
public GpioPin provisionPin(GpioProvider provider, Pin pin, String name, PinMode mode, PinState defaultState)
provisionPin
in interface GpioController
public GpioPin provisionPin(Pin pin, String name, PinMode mode)
provisionPin
in interface GpioController
public GpioPin provisionPin(Pin pin, PinMode mode)
provisionPin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, String name, PinMode mode)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, PinMode mode)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, String name, PinMode mode)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, PinMode mode)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, PinMode mode, PinPullResistance resistance)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, String name, PinMode mode, PinPullResistance resistance)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, String name, PinMode mode, PinPullResistance resistance)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, PinMode mode, PinPullResistance resistance)
provisionDigitalMultipurposePin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin, String name)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(Pin pin, String name)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(Pin pin)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin, PinPullResistance resistance)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin, String name, PinPullResistance resistance)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(Pin pin, String name, PinPullResistance resistance)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalInput provisionDigitalInputPin(Pin pin, PinPullResistance resistance)
provisionDigitalInputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin, String name)
provisionDigitalOutputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin)
provisionDigitalOutputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, String name)
provisionDigitalOutputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin)
provisionDigitalOutputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin, PinState defaultState)
provisionDigitalOutputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin, String name, PinState defaultState)
provisionDigitalOutputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, String name, PinState defaultState)
provisionDigitalOutputPin
in interface GpioController
public GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, PinState defaultState)
provisionDigitalOutputPin
in interface GpioController
public GpioPinAnalogInput provisionAnalogInputPin(GpioProvider provider, Pin pin, String name)
provisionAnalogInputPin
in interface GpioController
public GpioPinAnalogInput provisionAnalogInputPin(GpioProvider provider, Pin pin)
provisionAnalogInputPin
in interface GpioController
public GpioPinAnalogInput provisionAnalogInputPin(Pin pin, String name)
provisionAnalogInputPin
in interface GpioController
public GpioPinAnalogInput provisionAnalogInputPin(Pin pin)
provisionAnalogInputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin, String name)
provisionAnalogOutputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin)
provisionAnalogOutputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, String name)
provisionAnalogOutputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin)
provisionAnalogOutputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin, double defaultValue)
provisionAnalogOutputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin, String name, double defaultValue)
provisionAnalogOutputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, String name, double defaultValue)
provisionAnalogOutputPin
in interface GpioController
public GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, double defaultValue)
provisionAnalogOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin, String name)
provisionPwmOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin)
provisionPwmOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, String name)
provisionPwmOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(Pin pin)
provisionPwmOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin, int defaultValue)
provisionPwmOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin, String name, int defaultValue)
provisionPwmOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, String name, int defaultValue)
provisionPwmOutputPin
in interface GpioController
public GpioPinPwmOutput provisionPwmOutputPin(Pin pin, int defaultValue)
provisionPwmOutputPin
in interface GpioController
public void unprovisionPin(GpioPin... pin)
unprovisionPin
in interface GpioController
public void setShutdownOptions(GpioPinShutdown options, GpioPin... pin)
setShutdownOptions
in interface GpioController
public void setShutdownOptions(Boolean unexport, GpioPin... pin)
setShutdownOptions
in interface GpioController
public void setShutdownOptions(Boolean unexport, PinState state, GpioPin... pin)
setShutdownOptions
in interface GpioController
public void setShutdownOptions(Boolean unexport, PinState state, PinPullResistance resistance, GpioPin... pin)
setShutdownOptions
in interface GpioController
public void setShutdownOptions(Boolean unexport, PinState state, PinPullResistance resistance, PinMode mode, GpioPin... pin)
setShutdownOptions
in interface GpioController
public boolean isShutdown()
isShutdown
in interface GpioController
public void shutdown()
shutdown
in interface GpioController
Copyright © 2012–2019 Pi4J. All rights reserved.