Examples of AtmelMicrocontroller


Examples of avrora.sim.mcu.AtmelMicrocontroller

 
  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

Examples of avrora.sim.mcu.AtmelMicrocontroller

        // 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

Examples of avrora.sim.mcu.AtmelMicrocontroller

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

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

Examples of avrora.sim.mcu.AtmelMicrocontroller

        /** 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

Examples of avrora.sim.mcu.AtmelMicrocontroller

 
  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

Examples of avrora.sim.mcu.AtmelMicrocontroller

 
  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
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.