org.mechio.api.sensor.gpio
Interface GpioService<T extends SensorEventHeader>

All Superinterfaces:
org.jflux.api.core.Notifier<ChannelBoolEvent<T>>
All Known Implementing Classes:
RemoteGpioServiceClient

public interface GpioService<T extends SensorEventHeader>
extends org.jflux.api.core.Notifier<ChannelBoolEvent<T>>

Author:
Matthew Stevenson

Field Summary
static boolean IN
           
static boolean OUT
           
 
Method Summary
 java.lang.Boolean getPinDirection(int channel)
           
 java.lang.Boolean getPinValue(int channel)
           
 void setPinDirection(int channel, boolean direction)
           
 void setPinValue(int channel, boolean val)
           
 void setReadPeriod(DeviceReadPeriodEvent<T> readPeriod)
           
 
Methods inherited from interface org.jflux.api.core.Notifier
addListener, notifyListeners, removeListener
 

Field Detail

IN

static final boolean IN
See Also:
Constant Field Values

OUT

static final boolean OUT
See Also:
Constant Field Values
Method Detail

getPinDirection

java.lang.Boolean getPinDirection(int channel)

setPinDirection

void setPinDirection(int channel,
                     boolean direction)

getPinValue

java.lang.Boolean getPinValue(int channel)

setPinValue

void setPinValue(int channel,
                 boolean val)

setReadPeriod

void setReadPeriod(DeviceReadPeriodEvent<T> readPeriod)


Copyright © 2011-2014. All Rights Reserved.