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

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

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

Author:
Matthew Stevenson

Field Summary
static boolean IN
           
static boolean OUT
           
 
Method Summary
 Boolean getPinDirection(int channel)
           
 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

Boolean getPinDirection(int channel)

setPinDirection

void setPinDirection(int channel,
                     boolean direction)

getPinValue

Boolean getPinValue(int channel)

setPinValue

void setPinValue(int channel,
                 boolean val)

setReadPeriod

void setReadPeriod(DeviceReadPeriodEvent<T> readPeriod)


Copyright © 2011-2013. All Rights Reserved.