Examples of MulticastInterruptProbe


Examples of avrora.sim.util.MulticastInterruptProbe

     */
    public void post(int inum) {
        interpreter.innerLoop = false;
        posted = Arithmetic.setBit(posted, inum, true);
        pending = posted & enabled;
        MulticastInterruptProbe probe = probes[inum];
        if ( globalProbe != null ) globalProbe.fireWhenPosted(interpreter.state, inum);
        if ( probe != null ) probe.fireWhenPosted(interpreter.state, inum);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     * @param inum the interrupt number to unpost
     */
    public void unpost(int inum) {
        posted = Arithmetic.setBit(posted, inum, false);
        pending = posted & enabled;
        MulticastInterruptProbe probe = probes[inum];
        if ( globalProbe != null ) globalProbe.fireWhenUnposted(interpreter.state, inum);
        if ( probe != null ) probe.fireWhenUnposted(interpreter.state, inum);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     */
    void enable(int inum) {
        interpreter.innerLoop = false;
        enabled = Arithmetic.setBit(enabled, inum, true);
        pending = posted & enabled;
        MulticastInterruptProbe probe = probes[inum];
        if ( globalProbe != null ) globalProbe.fireWhenEnabled(interpreter.state, inum);
        if ( probe != null ) probe.fireWhenEnabled(interpreter.state, inum);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     * @param inum the interrupt number to disable
     */
    void disable(int inum) {
        enabled = Arithmetic.setBit(enabled, inum, false);
        pending = posted & enabled;
        MulticastInterruptProbe probe = probes[inum];
        if ( globalProbe != null ) globalProbe.fireWhenDisabled(interpreter.state, inum);
        if ( probe != null ) probe.fireWhenDisabled(interpreter.state, inum);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     * The <code>beforeInvoke()</code> method is called by the interpreter before it
     * invokes an interrupt handler.
     * @param inum the interrupt number about to be invoked
     */
    void beforeInvoke(int inum) {
        MulticastInterruptProbe probe = probes[inum];
        if ( globalProbe != null ) globalProbe.fireBeforeInvoke(interpreter.state, inum);
        if ( probe != null ) probe.fireBeforeInvoke(interpreter.state, inum);
        Notification n = notify[inum];
        if ( n != null ) n.invoke(inum);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     * The <code>afterInvoke()</code> method is called by the interpreter after it
     * invokes an interrupt handler.
     * @param inum the interrupt number that was just invoked
     */
    void afterInvoke(int inum) {
        MulticastInterruptProbe probe = probes[inum];
        if ( globalProbe != null ) globalProbe.fireAfterInvoke(interpreter.state, inum);
        if ( probe != null ) probe.fireAfterInvoke(interpreter.state, inum);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     * will be notified.
     * @param p the probe to insert on the specified interrupt
     * @param inum the interrupt on which to insert the probe
     */
    public void insertProbe(Simulator.InterruptProbe p, int inum) {
        MulticastInterruptProbe mp = probes[inum];
        if ( mp == null ) probes[inum] = mp = new MulticastInterruptProbe();
        mp.add(p);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     * The <code>removeProbe()</code> method removes a probe from an interrupt.
     * @param p the probe to remove from this interrupt
     * @param inum the interrupt number from which to remove this probe
     */
    public void removeProbe(Simulator.InterruptProbe p, int inum) {
        MulticastInterruptProbe mp = probes[inum];
        if ( mp != null ) mp.remove(p);
    }
View Full Code Here

Examples of avrora.sim.util.MulticastInterruptProbe

     * is enabled or disabled. When the global interrupt flag (master bit) is changed, the special interrupt
     * number <code>0</code> will be passed to the <code>fireWhenEnabled()</code> method of the probe.
     * @param p the probe to insert on all the interrupts
     */
    public void insertProbe(Simulator.InterruptProbe p) {
        if ( globalProbe == null ) globalProbe = new MulticastInterruptProbe();
        globalProbe.add(p);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.