jmce.intel.mcs51
Class Ports
java.lang.Object
jmce.sim.AbstractHardware
jmce.sim.AbstractPeripheral
jmce.intel.mcs51.Ports
- All Implemented Interfaces:
- Hardware, Peripheral
- Direct Known Subclasses:
- Ports, Ports
public class Ports
- extends AbstractPeripheral
Standard MCS51 ports.
This implements the standard 8051 , it work as a container for the
class Port
that really implements a single port.
- Version:
- 1.00
- Author:
- Mario Viara
Methods inherited from class jmce.sim.AbstractHardware |
addHardware, createFrame, destroy, getHardware, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareForName, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface jmce.sim.Hardware |
addHardware, destroy, getHardware, getHardware, getHardware, getHardware, getHardwareCount, getHardwareInstances, getHardwareTree, getName, getParent, initSwing, removeHardware, removeHardware, reset, setHardware, setHardware, setName |
Ports
public Ports(int n)
Ports
public Ports()
setNumPort
public void setNumPort(int n)
getNumPort
public int getNumPort()
getPort
public Port getPort(int n)
init
public void init(Hardware parent)
throws SIMException
- Description copied from interface:
Hardware
- Initialize the hardware. This method must be called before
any use of the interface. Only set ... / get ... method are
allowed to be called before the intialization.
- Specified by:
init
in interface Hardware
- Overrides:
init
in class AbstractHardware
- Parameters:
parent
- Parent of this hardware.
- Throws:
SIMException
setDisableMask
public void setDisableMask(int n,
int mask)
getSfrP
public int getSfrP(int n)
getSfrM1
public int getSfrM1(int n)
getSfrM2
public int getSfrM2(int n)
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractHardware