Package drivers.ser

Class IOHandler

java.lang.Object
drivers.ser.IOHandler

public class IOHandler extends Object
Handles all serial port IO calls from SMSQE.
  • Constructor Summary

    Constructors
    Constructor
    Description
    IOHandler(int nbrOfSerPorts)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    emptyBuffers(com.fazecast.jSerialComm.SerialPort serPort, int portNumber)
    Empty in and out buffers for a port (out buffer : try to send everything).
    int
    handleIO(MC68000Cpu cpu, com.fazecast.jSerialComm.SerialPort serPort, int portNumber)
    Handle all the allowed serial IO operations

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IOHandler

      public IOHandler(int nbrOfSerPorts)
  • Method Details

    • handleIO

      public int handleIO(MC68000Cpu cpu, com.fazecast.jSerialComm.SerialPort serPort, int portNumber)
      Handle all the allowed serial IO operations
      Parameters:
      cpu - CPU used (sp = operation type, old D0)
      serPort - serial port to handle the operations
      portNumber - (SMSQE) port number
      Returns:
      SMSQE error code (0 = no error).
    • emptyBuffers

      public void emptyBuffers(com.fazecast.jSerialComm.SerialPort serPort, int portNumber)
      Empty in and out buffers for a port (out buffer : try to send everything).
      Parameters:
      serPort - port in question
      portNumber - number of this port