Package org.bidib.jbidibc.debug
Interface DebugInterface
- All Known Implementing Classes:
AbstractDebugReader
public interface DebugInterface
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the port.voidPerform initialization task.booleanisOpened()voidopen(String portName, int baudRate, org.bidib.jbidibc.messages.ConnectionListener connectionListener, org.bidib.jbidibc.messages.helpers.Context context) Open connection to the specified port.voidsend(byte[] content) voidsend(String message, LineEndingEnum lineEnding)
-
Method Details
-
initialize
void initialize()Perform initialization task. -
getPortIdentifiers
- Returns:
- returns the list of serial port identifiers that are available in the system.
-
getMessageReceiver
DebugMessageProcessor getMessageReceiver()- Returns:
- the message processor
-
close
void close()Close the port. -
isOpened
boolean isOpened()- Returns:
- port is opened
-
open
void open(String portName, int baudRate, org.bidib.jbidibc.messages.ConnectionListener connectionListener, org.bidib.jbidibc.messages.helpers.Context context) throws org.bidib.jbidibc.messages.exception.PortNotFoundException, org.bidib.jbidibc.messages.exception.PortNotOpenedException Open connection to the specified port.- Parameters:
portName- the port identifierbaudRate- the baud rate to useconnectionListener- the connection listenercontext- the context- Throws:
org.bidib.jbidibc.messages.exception.PortNotFoundExceptionorg.bidib.jbidibc.messages.exception.PortNotOpenedException
-
send
- Parameters:
message- the message to send
-
send
void send(byte[] content) - Parameters:
content- the content to send
-