Package avrora.sim.mcu

Examples of avrora.sim.mcu.AtmelMicrocontroller$Pin


 
  public MicaSerial(Mote micaZMote) {
    mote = (MicaZMote) micaZMote;
    MicaZ micaZ = mote.getMicaZ();
    /* this should go into some other piece of code for serial data */
    AtmelMicrocontroller mcu = (AtmelMicrocontroller) micaZ.getMicrocontroller();
    avrora.sim.mcu.USART usart = (avrora.sim.mcu.USART) mcu.getDevice("usart0");
    if (usart != null) {
      usart.connectnew avrora.sim.mcu.USART.USARTDevice() {
        public avrora.sim.mcu.USART.Frame transmitFrame() {
          return null;
          // return new avrora.sim.mcu.USART.Frame((byte)'a', false, 8);
View Full Code Here


        // sensor board
        sensorboard = new SensorBoard(sim);
        // external flash
        externalFlash = new ExternalFlash(mcu);
        // light sensor
        AtmelMicrocontroller amcu = (AtmelMicrocontroller)mcu;
        lightSensor = new LightSensor(amcu, 1, "PC2", "PE5");
        addDevice("light-sensor", lightSensor);
    }
View Full Code Here

        mcu.getPin("PA2").connect(red);

        // external flash
        externalFlash = new ExternalFlash(mcu);
        // light sensor
        AtmelMicrocontroller amcu = (AtmelMicrocontroller)mcu;
    }
View Full Code Here

        /** construct a new monitor
         * @param s Simulator
         */
        Monitor(Simulator s) {
            if( s.getID() == NODE.get()) {
                AtmelMicrocontroller mcu = (AtmelMicrocontroller)s.getMicrocontroller();
                USART usart = (USART)mcu.getDevice("usart0");
                new SerialForwarder(usart, (int)PORT.get());
            }
        }
View Full Code Here

 
  public MicaSerial(MicaZMote micaZMote) {
    mote = micaZMote;
    MicaZ micaZ = micaZMote.getMicaZ();
    /* this should go into some other piece of code for serial data */
    AtmelMicrocontroller mcu = (AtmelMicrocontroller) micaZ.getMicrocontroller();
    avrora.sim.mcu.USART usart = (avrora.sim.mcu.USART) mcu.getDevice("usart0");
    if (usart != null) {
      usart.connectnew avrora.sim.mcu.USART.USARTDevice() {
        public avrora.sim.mcu.USART.Frame transmitFrame() {
          return null;
          // return new avrora.sim.mcu.USART.Frame((byte)'a', false, 8);
View Full Code Here

 
  public MicaSerial(Mote micaZMote) {
    mote = (MicaZMote) micaZMote;
    MicaZ micaZ = mote.getMicaZ();
    /* this should go into some other piece of code for serial data */
    AtmelMicrocontroller mcu = (AtmelMicrocontroller) micaZ.getMicrocontroller();
    avrora.sim.mcu.USART usart = (avrora.sim.mcu.USART) mcu.getDevice("usart0");
    if (usart != null) {
      usart.connectnew avrora.sim.mcu.USART.USARTDevice() {
        public avrora.sim.mcu.USART.Frame transmitFrame() {
          return null;
          // return new avrora.sim.mcu.USART.Frame((byte)'a', false, 8);
View Full Code Here

TOP

Related Classes of avrora.sim.mcu.AtmelMicrocontroller$Pin

Copyright © 2018 www.massapicom. 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.