Package com.pi4j.io.gpio
Interface GpioProvider
-
- All Known Implementing Classes:
GpioProviderBase
,RaspiGpioProvider
,SimulatedGpioProvider
,WiringPiGpioProviderBase
public interface GpioProvider
Gpio provider interface.- Author:
- Robert Savage (http://www.savagehomeautomation.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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)
boolean
isShutdown()
void
removeAllListeners()
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
shutdown()
void
unexport(Pin pin)
-
-
-
Method Detail
-
getName
String getName()
-
hasPin
boolean hasPin(Pin pin)
-
isExported
boolean isExported(Pin pin)
-
unexport
void unexport(Pin pin)
-
setPullResistance
void setPullResistance(Pin pin, PinPullResistance resistance)
-
getPullResistance
PinPullResistance getPullResistance(Pin pin)
-
setValue
void setValue(Pin pin, double value)
-
getValue
double getValue(Pin pin)
-
setPwm
void setPwm(Pin pin, int value)
-
setPwmRange
void setPwmRange(Pin pin, int range)
-
getPwm
int getPwm(Pin pin)
-
addListener
void addListener(Pin pin, PinListener listener)
-
removeListener
void removeListener(Pin pin, PinListener listener)
-
removeAllListeners
void removeAllListeners()
-
shutdown
void shutdown()
-
isShutdown
boolean isShutdown()
-
-