Versión de Firmware con funciones de RAM incorporadas.

Dependencies:   mbed

Fork of VmRecorderV1dot1 by virtualmech

Committer:
JuanManuelAmador
Date:
Tue Jul 14 08:34:11 2015 +0000
Revision:
2:e818c80e6d5c
Parent:
0:3d456b8ce449
Funciones de memoria RAM introducidas.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JuanManuelAmador 0:3d456b8ce449 1 #include "SelecManager.h"
JuanManuelAmador 0:3d456b8ce449 2
JuanManuelAmador 0:3d456b8ce449 3 SelecManager::SelecManager(){
JuanManuelAmador 0:3d456b8ce449 4 nScreens = 0;
JuanManuelAmador 0:3d456b8ce449 5 }
JuanManuelAmador 0:3d456b8ce449 6
JuanManuelAmador 0:3d456b8ce449 7 int SelecManager::addScreen(Seleccion *screen){
JuanManuelAmador 0:3d456b8ce449 8 screens[nScreens] = screen;
JuanManuelAmador 0:3d456b8ce449 9 nScreens++;
JuanManuelAmador 0:3d456b8ce449 10 return nScreens -1;
JuanManuelAmador 0:3d456b8ce449 11 }
JuanManuelAmador 0:3d456b8ce449 12
JuanManuelAmador 0:3d456b8ce449 13 void SelecManager::setInverterSelection(){
JuanManuelAmador 0:3d456b8ce449 14 for(int i = 0; i < nScreens; i++){
JuanManuelAmador 0:3d456b8ce449 15 screens[i]->setInverterSelection();
JuanManuelAmador 0:3d456b8ce449 16 }
JuanManuelAmador 0:3d456b8ce449 17 }
JuanManuelAmador 0:3d456b8ce449 18
JuanManuelAmador 0:3d456b8ce449 19 void SelecManager::setRectSelection(){
JuanManuelAmador 0:3d456b8ce449 20 for(int i = 0; i < nScreens; i++){
JuanManuelAmador 0:3d456b8ce449 21 screens[i]->setRectSelection();
JuanManuelAmador 0:3d456b8ce449 22 }
JuanManuelAmador 0:3d456b8ce449 23 }
JuanManuelAmador 0:3d456b8ce449 24
JuanManuelAmador 0:3d456b8ce449 25 int SelecManager::getnScreens(){
JuanManuelAmador 0:3d456b8ce449 26 return nScreens;
JuanManuelAmador 0:3d456b8ce449 27 }