com.eurotech.framework.net.admin.modem.telit.de910
Class VectorGpioControl

java.lang.Object
  extended by com.eurotech.framework.net.admin.modem.telit.de910.VectorGpioControl
All Implemented Interfaces:
IVectorJ21GpioService

public class VectorGpioControl
extends Object
implements IVectorJ21GpioService

Defines GPIO control for Vector board

Author:
ilya.binshtok

Field Summary
 
Fields inherited from interface com.eurotech.framework.net.admin.modem.telit.de910.IVectorJ21GpioService
J21PIN_5V_ENABLE, J21PIN_ADC_ON, J21PIN_CELL_ON_OFF, J21PIN_CELL_PWR_EN, J21PIN_CELL_RESET, J21PIN_DIRECTION_IN, J21PIN_DIRECTION_OUT, J21PIN_GPS_PWR_EN, J21PIN_LAN_PWR_ON, J21PIN_PWR_MON, J21PIN_SLOT_PWR_EN, J21PIN_USB_RESET, J21PIN_USB_SER_PWR_EN, J21PIN_ZIGBEE_PWR_EN, SERVICE_NAME
 
Method Summary
static VectorGpioControl getInstance()
           
 int j21pinGetDirection(int j21pin)
          Reports direction of J21 pin.
 String j21pinGetStatus(int j21pin)
          Reports a status of specified J21 pin.
 boolean j21pinIsOn(int j21pin)
          Reports a state of specified J21 pin.
 void j21pinSetDirection(int j21pin, int direction)
          Sets direction of J21 pin.
 void j21pinToggle(int j21pin)
           
 void j21pinTurnOff(int j21pin)
          Turns specified J21 pin OFF.
 void j21pinTurnOn(int j21pin)
          Turns specified J21 pin ON.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static VectorGpioControl getInstance()

j21pinGetDirection

public int j21pinGetDirection(int j21pin)
                       throws Exception
Description copied from interface: IVectorJ21GpioService
Reports direction of J21 pin.

Specified by:
j21pinGetDirection in interface IVectorJ21GpioService
Parameters:
j21pin - - J21 pin number as int
Returns:
J21 pin direction as int
Throws:
Exception

j21pinSetDirection

public void j21pinSetDirection(int j21pin,
                               int direction)
                        throws Exception
Description copied from interface: IVectorJ21GpioService
Sets direction of J21 pin.

Specified by:
j21pinSetDirection in interface IVectorJ21GpioService
Parameters:
j21pin - - J21 pin number as int
direction - - J21 pin direction as int
Throws:
Exception

j21pinIsOn

public boolean j21pinIsOn(int j21pin)
                   throws Exception
Description copied from interface: IVectorJ21GpioService
Reports a state of specified J21 pin.

Specified by:
j21pinIsOn in interface IVectorJ21GpioService
Parameters:
j21pin - - J21 pin as int
Returns:
pin status as boolean
Throws:
Exception

j21pinGetStatus

public String j21pinGetStatus(int j21pin)
                       throws Exception
Description copied from interface: IVectorJ21GpioService
Reports a status of specified J21 pin.

Specified by:
j21pinGetStatus in interface IVectorJ21GpioService
Parameters:
j21pin - - J21 pin as int
Returns:
state of specified J21 pin as String
Throws:
Exception

j21pinTurnOn

public void j21pinTurnOn(int j21pin)
                  throws Exception
Description copied from interface: IVectorJ21GpioService
Turns specified J21 pin ON.

Specified by:
j21pinTurnOn in interface IVectorJ21GpioService
Parameters:
j21pin - - J21 pin to turn ON as int
Throws:
Exception

j21pinTurnOff

public void j21pinTurnOff(int j21pin)
                   throws Exception
Description copied from interface: IVectorJ21GpioService
Turns specified J21 pin OFF.

Specified by:
j21pinTurnOff in interface IVectorJ21GpioService
Parameters:
j21pin - - J21 pin to turn OFF as int
Throws:
Exception

j21pinToggle

public void j21pinToggle(int j21pin)
                  throws Exception
Specified by:
j21pinToggle in interface IVectorJ21GpioService
Throws:
Exception


Copyright © 2013. All Rights Reserved.