pt.citar.diablu.nxt.protocol
Interface NXTCommChannel

All Known Implementing Classes:
NXTCommBluetoothSerialChannelJSSC, NXTCommBluetoothSerialChannelRXTX

public interface NXTCommChannel

Author:
Jorge Cardoso

Method Summary
 void closeChannel()
           
 void flush()
           
 void openChannel(Object channel)
           
 int read()
           
 int read(byte[] buffer)
           
 NXTResponse sendCommand(NXTCommand command)
           
 void write(byte b)
           
 void write(byte[] buffer)
           
 

Method Detail

openChannel

void openChannel(Object channel)
                 throws Exception
Throws:
Exception

closeChannel

void closeChannel()
                  throws Exception
Throws:
Exception

sendCommand

NXTResponse sendCommand(NXTCommand command)
                        throws IOException
Throws:
IOException

read

int read()
         throws RuntimeException
Throws:
RuntimeException

read

int read(byte[] buffer)
         throws RuntimeException
Throws:
RuntimeException

write

void write(byte[] buffer)
           throws RuntimeException
Throws:
RuntimeException

write

void write(byte b)
           throws RuntimeException
Throws:
RuntimeException

flush

void flush()


Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014