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)){
std::string tostring(const Header &h, bool lc)
Frame toframe(const std::string &s)
int main(int argc, char *argv[])
bool init(const std::string &device)
bool startTX(DurationType period, Header header, size_t num, Frame *frames)