public class PCF8574 extends AbstractDeviceFactory implements GpioDeviceFactoryInterface, GpioExpander
Modifier and Type | Class and Description |
---|---|
static class |
PCF8574.PCF8574BoardPinInfo |
closed, deviceStates
Constructor and Description |
---|
PCF8574(int controller,
int address,
int addressSize,
int frequency) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
closePin(int gpio) |
GpioDigitalInputDeviceInterface |
createDigitalInputDevice(String key,
PinInfo pinInfo,
GpioPullUpDown pud,
GpioEventTrigger trigger) |
GpioDigitalInputOutputDeviceInterface |
createDigitalInputOutputDevice(String key,
PinInfo pinInfo,
DeviceMode mode) |
GpioDigitalOutputDeviceInterface |
createDigitalOutputDevice(String key,
PinInfo pinInfo,
boolean initialValue) |
BoardPinInfo |
getBoardPinInfo() |
String |
getName() |
boolean |
getValue(int gpio) |
byte |
getValues(int port) |
void |
setDirections(int port,
byte directions) |
void |
setInputMode(int gpio) |
void |
setOutputMode(int gpio) |
void |
setValue(int gpio,
boolean value) |
void |
setValues(int port,
byte values) |
createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getDevice, getDevice, isClosed, isDeviceOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
provisionDigitalInputDevice, provisionDigitalInputOutputDevice, provisionDigitalOutputDevice
createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getDevice, getDevice, isClosed, isDeviceOpened
public PCF8574(int controller, int address, int addressSize, int frequency)
public GpioDigitalInputDeviceInterface createDigitalInputDevice(String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
createDigitalInputDevice
in interface GpioDeviceFactoryInterface
RuntimeIOException
public GpioDigitalOutputDeviceInterface createDigitalOutputDevice(String key, PinInfo pinInfo, boolean initialValue) throws RuntimeIOException
createDigitalOutputDevice
in interface GpioDeviceFactoryInterface
RuntimeIOException
public GpioDigitalInputOutputDeviceInterface createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode) throws RuntimeIOException
createDigitalInputOutputDevice
in interface GpioDeviceFactoryInterface
RuntimeIOException
public void setDirections(int port, byte directions)
setDirections
in interface GpioExpander
public byte getValues(int port)
public void setValues(int port, byte values)
setValues
in interface GpioExpander
public boolean getValue(int gpio)
public void setValue(int gpio, boolean value)
public void close()
close
in interface GpioExpander
close
in interface DeviceFactoryInterface
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractDeviceFactory
public void setInputMode(int gpio)
public void setOutputMode(int gpio)
public String getName()
getName
in interface DeviceFactoryInterface
public void closePin(int gpio)
public BoardPinInfo getBoardPinInfo()
getBoardPinInfo
in interface DeviceFactoryInterface
Copyright © 2016–2018 mattjlewis. All rights reserved.