Package com.pi4j.io.gpio.impl
Class PinImpl
- java.lang.Object
-
- com.pi4j.io.gpio.impl.PinImpl
-
- All Implemented Interfaces:
Pin
,Comparable<Pin>
public class PinImpl extends Object implements Pin
-
-
Constructor Summary
Constructors Constructor Description PinImpl(String provider, int address, String name, EnumSet<PinMode> modes)
PinImpl(String provider, int address, String name, EnumSet<PinMode> modes, EnumSet<PinPullResistance> pullResistance)
PinImpl(String provider, int address, String name, EnumSet<PinMode> modes, EnumSet<PinPullResistance> pullResistance, EnumSet<PinEdge> pinEdges)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Pin o)
boolean
equals(Object obj)
int
getAddress()
String
getName()
String
getProvider()
EnumSet<PinEdge>
getSupportedPinEdges()
EnumSet<PinMode>
getSupportedPinModes()
EnumSet<PinPullResistance>
getSupportedPinPullResistance()
boolean
supportsPinEdges()
boolean
supportsPinEvents()
boolean
supportsPinPullResistance()
String
toString()
-
-
-
Constructor Detail
-
PinImpl
public PinImpl(String provider, int address, String name, EnumSet<PinMode> modes, EnumSet<PinPullResistance> pullResistance, EnumSet<PinEdge> pinEdges)
-
PinImpl
public PinImpl(String provider, int address, String name, EnumSet<PinMode> modes, EnumSet<PinPullResistance> pullResistance)
-
-
Method Detail
-
getAddress
public int getAddress()
- Specified by:
getAddress
in interfacePin
-
getProvider
public String getProvider()
- Specified by:
getProvider
in interfacePin
-
getSupportedPinModes
public EnumSet<PinMode> getSupportedPinModes()
- Specified by:
getSupportedPinModes
in interfacePin
-
getSupportedPinPullResistance
public EnumSet<PinPullResistance> getSupportedPinPullResistance()
- Specified by:
getSupportedPinPullResistance
in interfacePin
-
supportsPinPullResistance
public boolean supportsPinPullResistance()
- Specified by:
supportsPinPullResistance
in interfacePin
-
getSupportedPinEdges
public EnumSet<PinEdge> getSupportedPinEdges()
- Specified by:
getSupportedPinEdges
in interfacePin
-
supportsPinEdges
public boolean supportsPinEdges()
- Specified by:
supportsPinEdges
in interfacePin
-
supportsPinEvents
public boolean supportsPinEvents()
- Specified by:
supportsPinEvents
in interfacePin
-
compareTo
public int compareTo(Pin o)
- Specified by:
compareTo
in interfaceComparable<Pin>
-
-