public class RaspiGpioProvider extends GpioProviderBase implements GpioProvider, GpioInterruptListener
GpioProvider implementation.| Modifier and Type | Field and Description |
|---|---|
static String |
NAME |
cache, isshutdown, listeners| Constructor and Description |
|---|
RaspiGpioProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(Pin pin,
PinListener listener) |
void |
export(Pin pin,
PinMode mode) |
void |
export(Pin pin,
PinMode mode,
PinState defaultState) |
PinMode |
getMode(Pin pin) |
String |
getName() |
PinPullResistance |
getPullResistance(Pin pin) |
int |
getPwm(Pin pin) |
PinState |
getState(Pin pin) |
double |
getValue(Pin pin) |
boolean |
hasPin(Pin pin) |
boolean |
isExported(Pin pin) |
void |
pinStateChange(GpioInterruptEvent event) |
void |
removeListener(Pin pin,
PinListener listener) |
void |
setMode(Pin pin,
PinMode mode) |
void |
setPullResistance(Pin pin,
PinPullResistance resistance) |
void |
setPwm(Pin pin,
int value) |
void |
setState(Pin pin,
PinState state) |
void |
setValue(Pin pin,
double value) |
void |
unexport(Pin pin) |
dispatchPinAnalogValueChangeEvent, dispatchPinDigitalStateChangeEvent, getPinCache, isShutdown, removeAllListeners, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisShutdown, removeAllListeners, shutdownpublic static final String NAME
public RaspiGpioProvider()
public String getName()
getName in interface GpioProvidergetName in class GpioProviderBasepublic boolean hasPin(Pin pin)
hasPin in interface GpioProviderhasPin in class GpioProviderBasepublic void export(Pin pin, PinMode mode)
export in interface GpioProviderexport in class GpioProviderBasepublic void export(Pin pin, PinMode mode, PinState defaultState)
export in interface GpioProviderexport in class GpioProviderBasepublic boolean isExported(Pin pin)
isExported in interface GpioProviderisExported in class GpioProviderBasepublic void unexport(Pin pin)
unexport in interface GpioProviderunexport in class GpioProviderBasepublic void setMode(Pin pin, PinMode mode)
setMode in interface GpioProvidersetMode in class GpioProviderBasepublic PinMode getMode(Pin pin)
getMode in interface GpioProvidergetMode in class GpioProviderBasepublic void setPullResistance(Pin pin, PinPullResistance resistance)
setPullResistance in interface GpioProvidersetPullResistance in class GpioProviderBasepublic PinPullResistance getPullResistance(Pin pin)
getPullResistance in interface GpioProvidergetPullResistance in class GpioProviderBasepublic void setState(Pin pin, PinState state)
setState in interface GpioProvidersetState in class GpioProviderBasepublic PinState getState(Pin pin)
getState in interface GpioProvidergetState in class GpioProviderBasepublic void setValue(Pin pin, double value)
setValue in interface GpioProvidersetValue in class GpioProviderBasepublic double getValue(Pin pin)
getValue in interface GpioProvidergetValue in class GpioProviderBasepublic void setPwm(Pin pin, int value)
setPwm in interface GpioProvidersetPwm in class GpioProviderBasepublic int getPwm(Pin pin)
getPwm in interface GpioProvidergetPwm in class GpioProviderBasepublic void pinStateChange(GpioInterruptEvent event)
pinStateChange in interface GpioInterruptListenerpublic void addListener(Pin pin, PinListener listener)
addListener in interface GpioProvideraddListener in class GpioProviderBasepublic void removeListener(Pin pin, PinListener listener)
removeListener in interface GpioProviderremoveListener in class GpioProviderBaseCopyright © 2012–2019 Pi4J. All rights reserved.