Crea sito


org.zu.ardulink.connection.usb
Class DigisparkUSBConnection

java.lang.Object
  extended by org.zu.ardulink.connection.usb.DigisparkUSBConnection
All Implemented Interfaces:
Connection

public class DigisparkUSBConnection
extends Object
implements Connection

Ardulink - return to homepage

v0.6.1 Magnum PI

Author:
Luciano Zu project Ardulink http://www.ardulink.org/


Field Summary
static int DEFAULT_DIVIDER
           
static String DEFAULT_ID
           
 
Constructor Summary
DigisparkUSBConnection()
           
DigisparkUSBConnection(String id)
           
DigisparkUSBConnection(String id, int divider)
           
 
Method Summary
 boolean connect(Object... params)
           
 boolean connect(String portName)
           
 boolean disconnect()
           
 List<String> getPortList()
           
 boolean isConnected()
           
 void setConnectionContact(ConnectionContact connectionContact)
           
 boolean writeSerial(int numBytes, int[] message)
           
 boolean writeSerial(String message)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ID

public static final String DEFAULT_ID
See Also:
Constant Field Values

DEFAULT_DIVIDER

public static final int DEFAULT_DIVIDER
See Also:
Constant Field Values
Constructor Detail

DigisparkUSBConnection

public DigisparkUSBConnection()

DigisparkUSBConnection

public DigisparkUSBConnection(String id)

DigisparkUSBConnection

public DigisparkUSBConnection(String id,
                              int divider)
Method Detail

getPortList

public List<String> getPortList()
Specified by:
getPortList in interface Connection

connect

public boolean connect(Object... params)
Specified by:
connect in interface Connection

connect

public boolean connect(String portName)

disconnect

public boolean disconnect()
Specified by:
disconnect in interface Connection

isConnected

public boolean isConnected()
Specified by:
isConnected in interface Connection

writeSerial

public boolean writeSerial(String message)
Specified by:
writeSerial in interface Connection

writeSerial

public boolean writeSerial(int numBytes,
                           int[] message)
Specified by:
writeSerial in interface Connection

setConnectionContact

public void setConnectionContact(ConnectionContact connectionContact)
Specified by:
setConnectionContact in interface Connection


Copyright © 2015. All rights reserved.