8 int main(
int argc,
char *argv[]){
11 int extra_frames = argc - 4;
14 std::cout <<
"usage: "<< argv[0] <<
" DEVICE PERIOD HEADER#DATA [DATA*]" << std::endl;
18 if(!bcm.
init(argv[1])){
22 int num_frames = extra_frames+1;
27 for(
int i=0; i< extra_frames; ++i){
31 for(
int i = 0; i < num_frames; ++i){
32 std::cout << frames[i] << std::endl;
34 if(bcm.
startTX(boost::chrono::duration<double>(atof(argv[2])), header, num_frames, frames)){