This is an alternative way to control which channel is active. is saves only the channels that are active in a vector.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Canal.cpp Source File

Canal.cpp

00001 #include "mbed.h"
00002 #include "Canal.h"
00003 
00004 Canal::Canal(void){
00005     
00006     state = 0;
00007     
00008     }
00009 
00010 bool Canal::getState(void){
00011         
00012     return state;
00013         
00014      }
00015      
00016 void Canal::setState(bool newState){
00017     
00018     state = newState;
00019     
00020     }
00021