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 Communication.cpp Source File

Communication.cpp

00001 #include "mbed.h"
00002 #include "Canal.h"
00003 
00004 
00005 void sendActivityState(Serial* serialPort,vector<uint32_t> activeChannel){
00006         
00007         serialPort->printf("the following channel are active");
00008     
00009         for(uint32_t count = 0; count<activeChannel.size();count++){
00010             
00011        
00012         serialPort->printf("%d\t",activeChannel[count]);
00013         }
00014         
00015 
00016 
00017 }