Package com.pi4j.io.gpio
Interface GpioController
-
- All Known Implementing Classes:
GpioControllerImpl
public interface GpioController
Gpio controller interface. This interface describes all operations over GPIO.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Method Summary
-
-
-
Method Detail
-
isExported
boolean isExported(GpioPin... pin)
-
unexport
void unexport(Pin... pin)
Unexport a GPIO pin by Pin instance. This method will explicitly unexport any Pin whether it has been provisioned in Pi4J or not.- Parameters:
pin
- GPIO pin instance (i.e. RaspiPin.GPIO_00)
-
unexport
void unexport(GpioPin... pin)
Unexport a GPIO pin by GpioPin instance. This method will unexport an existing provisoned pin- Parameters:
pin
- provisioned GPIO pin instance
-
unexportAll
void unexportAll()
Unexport all GPIO pins that have been provisioned by Pi4J in the context of this program.
-
setPullResistance
void setPullResistance(PinPullResistance resistance, GpioPin... pin)
-
getPullResistance
PinPullResistance getPullResistance(GpioPin pin)
-
isPullResistance
boolean isPullResistance(PinPullResistance resistance, GpioPin... pin)
-
high
void high(GpioPinDigitalOutput... pin)
-
isHigh
boolean isHigh(GpioPinDigital... pin)
-
low
void low(GpioPinDigitalOutput... pin)
-
isLow
boolean isLow(GpioPinDigital... pin)
-
setState
void setState(PinState state, GpioPinDigitalOutput... pin)
-
setState
void setState(boolean state, GpioPinDigitalOutput... pin)
-
isState
boolean isState(PinState state, GpioPinDigital... pin)
-
getState
PinState getState(GpioPinDigital pin)
-
toggle
void toggle(GpioPinDigitalOutput... pin)
-
pulse
void pulse(long milliseconds, GpioPinDigitalOutput... pin)
-
setValue
void setValue(double value, GpioPinAnalogOutput... pin)
-
getValue
double getValue(GpioPinAnalog pin)
-
addListener
void addListener(GpioPinListener listener, GpioPinInput... pin)
-
addListener
void addListener(GpioPinListener[] listeners, GpioPinInput... pin)
-
removeListener
void removeListener(GpioPinListener listener, GpioPinInput... pin)
-
removeListener
void removeListener(GpioPinListener[] listeners, GpioPinInput... pin)
-
removeAllListeners
void removeAllListeners()
-
addTrigger
void addTrigger(GpioTrigger trigger, GpioPinInput... pin)
-
addTrigger
void addTrigger(GpioTrigger[] triggers, GpioPinInput... pin)
-
removeTrigger
void removeTrigger(GpioTrigger trigger, GpioPinInput... pin)
-
removeTrigger
void removeTrigger(GpioTrigger[] triggers, GpioPinInput... pin)
-
removeAllTriggers
void removeAllTriggers()
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, String name, PinMode mode, PinPullResistance resistance)
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, PinMode mode, PinPullResistance resistance)
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, String name, PinMode mode)
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(GpioProvider provider, Pin pin, PinMode mode)
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, String name, PinMode mode, PinPullResistance resistance)
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, PinMode mode, PinPullResistance resistance)
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, String name, PinMode mode)
-
provisionDigitalMultipurposePin
GpioPinDigitalMultipurpose provisionDigitalMultipurposePin(Pin pin, PinMode mode)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin, String name, PinPullResistance resistance)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin, PinPullResistance resistance)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin, String name)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(GpioProvider provider, Pin pin)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(Pin pin, String name, PinPullResistance resistance)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(Pin pin, PinPullResistance resistance)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(Pin pin, String name)
-
provisionDigitalInputPin
GpioPinDigitalInput provisionDigitalInputPin(Pin pin)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin, String name, PinState defaultState)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin, PinState defaultState)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin, String name)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(GpioProvider provider, Pin pin)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, String name, PinState defaultState)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, PinState defaultState)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin, String name)
-
provisionDigitalOutputPin
GpioPinDigitalOutput provisionDigitalOutputPin(Pin pin)
-
provisionAnalogInputPin
GpioPinAnalogInput provisionAnalogInputPin(GpioProvider provider, Pin pin, String name)
-
provisionAnalogInputPin
GpioPinAnalogInput provisionAnalogInputPin(GpioProvider provider, Pin pin)
-
provisionAnalogInputPin
GpioPinAnalogInput provisionAnalogInputPin(Pin pin, String name)
-
provisionAnalogInputPin
GpioPinAnalogInput provisionAnalogInputPin(Pin pin)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin, String name, double defaultValue)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin, double defaultValue)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin, String name)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(GpioProvider provider, Pin pin)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, String name, double defaultValue)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, double defaultValue)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin, String name)
-
provisionAnalogOutputPin
GpioPinAnalogOutput provisionAnalogOutputPin(Pin pin)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin, String name, int defaultValue)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin, int defaultValue)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin, String name)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(GpioProvider provider, Pin pin)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(Pin pin, String name, int defaultValue)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(Pin pin, int defaultValue)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(Pin pin, String name)
-
provisionPwmOutputPin
GpioPinPwmOutput provisionPwmOutputPin(Pin pin)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider provider, Pin pin, String name, int defaultValue)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider provider, Pin pin, int defaultValue)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider provider, Pin pin, String name)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(GpioProvider provider, Pin pin)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin, String name, int defaultValue)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin, int defaultValue)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin, String name)
-
provisionSoftPwmOutputPin
GpioPinPwmOutput provisionSoftPwmOutputPin(Pin pin)
-
provisionPin
GpioPin provisionPin(GpioProvider provider, Pin pin, String name, PinMode mode, PinState defaultState)
-
provisionPin
GpioPin provisionPin(GpioProvider provider, Pin pin, String name, PinMode mode)
-
provisionPin
GpioPin provisionPin(GpioProvider provider, Pin pin, PinMode mode)
-
setShutdownOptions
void setShutdownOptions(GpioPinShutdown options, GpioPin... pin)
-
setShutdownOptions
void setShutdownOptions(Boolean unexport, PinState state, PinPullResistance resistance, GpioPin... pin)
-
setShutdownOptions
void setShutdownOptions(Boolean unexport, PinState state, PinPullResistance resistance, PinMode mode, GpioPin... pin)
-
getProvisionedPins
Collection<GpioPin> getProvisionedPins()
-
unprovisionPin
void unprovisionPin(GpioPin... pin)
-
isShutdown
boolean isShutdown()
-
shutdown
void shutdown()
-
-