public class RemoteGpioServiceClient<T extends SensorEventHeader> extends org.jflux.api.core.util.DefaultNotifier<DeviceBoolEvent<T>> implements GpioService<T>
| Modifier and Type | Class and Description |
|---|---|
class |
RemoteGpioServiceClient.GpioPin |
IN, OUT| Constructor and Description |
|---|
RemoteGpioServiceClient(org.jflux.api.core.Source<T> headerFactory,
org.jflux.api.core.Source<Long> timestampFactory,
org.jflux.api.core.Source<? extends DeviceBoolEvent<T>> eventFactory,
org.jflux.api.core.Source<? extends GpioConfigEvent<T>> configFactory,
org.jflux.api.core.Notifier<GpioConfigEvent<T>> directionSender,
org.jflux.api.core.Notifier<DeviceReadPeriodEvent<T>> readPeriodSender,
org.jflux.api.core.Notifier<DeviceBoolEvent<T>> outputValueSender,
org.jflux.api.core.Notifier<DeviceBoolEvent<T>> inputValueReceiver,
int dirSeqId,
int outValSeqId,
int inValSeqId,
int... availablePins) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getPinDirection(int channel) |
Boolean |
getPinValue(int channel) |
void |
setDirectionSender(org.jflux.api.core.Notifier<GpioConfigEvent<T>> sender) |
void |
setEventFactory(org.jflux.api.core.Source<DeviceBoolEvent<T>> eventFactory) |
void |
setHeaderFactory(org.jflux.api.core.Source<T> headerFactory) |
void |
setInputValueReceiver(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> receiver) |
void |
setOutputValueSender(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> sender) |
void |
setPinDirection(int channel,
boolean direction) |
void |
setPinValue(int channel,
boolean val) |
void |
setReadPeriod(DeviceReadPeriodEvent<T> readPeriod) |
void |
setTimestampFactory(org.jflux.api.core.Source<Long> timestampFactory) |
addListener, notifyListeners, removeListenerpublic RemoteGpioServiceClient(org.jflux.api.core.Source<T> headerFactory, org.jflux.api.core.Source<Long> timestampFactory, org.jflux.api.core.Source<? extends DeviceBoolEvent<T>> eventFactory, org.jflux.api.core.Source<? extends GpioConfigEvent<T>> configFactory, org.jflux.api.core.Notifier<GpioConfigEvent<T>> directionSender, org.jflux.api.core.Notifier<DeviceReadPeriodEvent<T>> readPeriodSender, org.jflux.api.core.Notifier<DeviceBoolEvent<T>> outputValueSender, org.jflux.api.core.Notifier<DeviceBoolEvent<T>> inputValueReceiver, int dirSeqId, int outValSeqId, int inValSeqId, int... availablePins)
public Boolean getPinDirection(int channel)
getPinDirection in interface GpioService<T extends SensorEventHeader>public void setPinDirection(int channel,
boolean direction)
setPinDirection in interface GpioService<T extends SensorEventHeader>public Boolean getPinValue(int channel)
getPinValue in interface GpioService<T extends SensorEventHeader>public void setPinValue(int channel,
boolean val)
setPinValue in interface GpioService<T extends SensorEventHeader>public void setReadPeriod(DeviceReadPeriodEvent<T> readPeriod)
setReadPeriod in interface GpioService<T extends SensorEventHeader>public void setHeaderFactory(org.jflux.api.core.Source<T> headerFactory)
public void setTimestampFactory(org.jflux.api.core.Source<Long> timestampFactory)
public void setEventFactory(org.jflux.api.core.Source<DeviceBoolEvent<T>> eventFactory)
public void setDirectionSender(org.jflux.api.core.Notifier<GpioConfigEvent<T>> sender)
public void setOutputValueSender(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> sender)
public void setInputValueReceiver(org.jflux.api.core.Notifier<DeviceBoolEvent<T>> receiver)
Copyright © 2011-2014. All Rights Reserved.