Package com.pi4j.io.gpio
Interface GpioPin
-
- All Known Subinterfaces:
GpioPinAnalog
,GpioPinAnalogInput
,GpioPinAnalogOutput
,GpioPinDigital
,GpioPinDigitalInput
,GpioPinDigitalMultipurpose
,GpioPinDigitalOutput
,GpioPinInput
,GpioPinOutput
,GpioPinPwm
,GpioPinPwmOutput
- All Known Implementing Classes:
GpioPinImpl
public interface GpioPin
Gpio pin interface. This interface describes all operations over single GPIO pin.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Method Summary
-
-
-
Method Detail
-
getProvider
GpioProvider getProvider()
-
getPin
Pin getPin()
-
setName
void setName(String name)
-
getName
String getName()
-
setTag
void setTag(Object tag)
-
getTag
Object getTag()
-
hasProperty
boolean hasProperty(String key)
-
removeProperty
void removeProperty(String key)
-
clearProperties
void clearProperties()
-
export
void export(PinMode mode)
-
unexport
void unexport()
-
isExported
boolean isExported()
-
setMode
void setMode(PinMode mode)
-
getMode
PinMode getMode()
-
isMode
boolean isMode(PinMode mode)
-
setPullResistance
void setPullResistance(PinPullResistance resistance)
-
getPullResistance
PinPullResistance getPullResistance()
-
isPullResistance
boolean isPullResistance(PinPullResistance resistance)
-
getListeners
Collection<GpioPinListener> getListeners()
-
addListener
void addListener(GpioPinListener... listener)
-
addListener
void addListener(List<? extends GpioPinListener> listeners)
-
hasListener
boolean hasListener(GpioPinListener... listener)
-
removeListener
void removeListener(GpioPinListener... listener)
-
removeListener
void removeListener(List<? extends GpioPinListener> listeners)
-
removeAllListeners
void removeAllListeners()
-
getShutdownOptions
GpioPinShutdown getShutdownOptions()
-
setShutdownOptions
void setShutdownOptions(GpioPinShutdown options)
-
setShutdownOptions
void setShutdownOptions(Boolean unexport)
-
setShutdownOptions
void setShutdownOptions(Boolean unexport, PinState state, PinPullResistance resistance)
-
setShutdownOptions
void setShutdownOptions(Boolean unexport, PinState state, PinPullResistance resistance, PinMode mode)
-
-