Interface DebugInterface

All Known Implementing Classes:
AbstractDebugReader

public interface DebugInterface
  • Method Details

    • initialize

      void initialize()
      Perform initialization task.
    • getPortIdentifiers

      List<String> 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 identifier
      baudRate - the baud rate to use
      connectionListener - the connection listener
      context - the context
      Throws:
      org.bidib.jbidibc.messages.exception.PortNotFoundException
      org.bidib.jbidibc.messages.exception.PortNotOpenedException
    • send

      void send(String message, LineEndingEnum lineEnding)
      Parameters:
      message - the message to send
    • send

      void send(byte[] content)
      Parameters:
      content - the content to send