public abstract class WiringPiGpioProviderBase extends GpioProviderBase implements GpioProvider, GpioInterruptListener
GpioProvider implementation.| Modifier and Type | Field and Description |
|---|---|
protected static short |
MAX_PIN_CACHE |
protected static PinMode[] |
pinModeCache |
protected static short[] |
pinSupportedCache |
cache, DEFAULT_CACHE_SIZE, isshutdown, listeners| Constructor and Description |
|---|
WiringPiGpioProviderBase() |
| 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) |
abstract String |
getName() |
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 |
setPwmRange(Pin pin,
int range) |
void |
setState(Pin pin,
PinState state) |
void |
setValue(Pin pin,
double value) |
void |
unexport(Pin pin) |
protected void |
updateInterruptListener(Pin pin) |
dispatchPinAnalogValueChangeEvent, dispatchPinDigitalStateChangeEvent, getPinCache, getPullResistance, isShutdown, removeAllListeners, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPullResistance, isShutdown, removeAllListeners, shutdownprotected static short MAX_PIN_CACHE
protected static short[] pinSupportedCache
protected static PinMode[] pinModeCache
public WiringPiGpioProviderBase()
public abstract 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 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 void setPwmRange(Pin pin, int range)
setPwmRange in interface GpioProvidersetPwmRange 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 GpioProviderBaseprotected void updateInterruptListener(Pin pin)
Copyright © 2012–2019 Pi4J. All rights reserved.