public interface MicrochipPotentiometer extends Potentiometer
MCP4561
,
MCP4651
Modifier and Type | Method and Description |
---|---|
MicrochipPotentiometerChannel |
getChannel() |
MicrochipPotentiometerDeviceStatus |
getDeviceStatus() |
MicrochipPotentiometerNonVolatileMode |
getNonVolatileMode() |
MicrochipPotentiometerChannel[] |
getSupportedChannelsByDevice() |
MicrochipPotentiometerTerminalConfiguration |
getTerminalConfiguration() |
boolean |
isCapableOfNonVolatileWiper() |
boolean |
isChannelSupportedByDevice(MicrochipPotentiometerChannel channel) |
void |
setTerminalConfiguration(MicrochipPotentiometerTerminalConfiguration terminalConfiguration) |
void |
setWiperLock(boolean enabled)
Enables or disables wiper-lock.
|
void |
setWriteProtection(boolean enabled)
Enables or disables write-protection for devices capable of non-volatile memory.
|
int |
updateCacheFromDevice()
Updates the cache to the wiper's value.
|
decrease, decrease, getCurrentValue, getMaxValue, increase, increase, isRheostat, setCurrentValue
clearProperties, getName, getProperties, getProperty, getProperty, getTag, hasProperty, removeProperty, setName, setProperty, setTag
MicrochipPotentiometerChannel getChannel()
boolean isCapableOfNonVolatileWiper()
MicrochipPotentiometerNonVolatileMode getNonVolatileMode()
MicrochipPotentiometerChannel[] getSupportedChannelsByDevice()
int updateCacheFromDevice() throws IOException
IOException
- Thrown if communication fails or device returned a malformed resultMicrochipPotentiometerDeviceStatus getDeviceStatus() throws IOException
IOException
- Thrown if communication fails or device returned a malformed resultMicrochipPotentiometerTerminalConfiguration getTerminalConfiguration() throws IOException
IOException
- Thrown if communication fails or device returned a malformed resultvoid setTerminalConfiguration(MicrochipPotentiometerTerminalConfiguration terminalConfiguration) throws IOException
terminalConfiguration
- The new terminal-configurationIOException
- Thrown if communication fails or device returned a malformed resultvoid setWiperLock(boolean enabled) throws IOException
enabled
- wiper-lock for the poti's channel has to be enabledIOException
- Thrown if communication fails or device returned a malformed resultvoid setWriteProtection(boolean enabled) throws IOException
enabled
- write-protection has to be enabledIOException
- Thrown if communication fails or device returned a malformed resultboolean isChannelSupportedByDevice(MicrochipPotentiometerChannel channel)
channel
- A certain channelCopyright © 2012–2016 Pi4J. All rights reserved.