Demo entry 6623970

1

   

Submitted by anonymous on Jun 12, 2017 at 12:46
Language: C++. Code size: 715 Bytes.

int tmpFunc(std::shared_ptr<std::vector<float>> vector , unsigned int timeoutCount )
{
     static unsigned int count = 0;

     /* user code block */ 
     return 0;
}


int main ( void )
{
     char a; 
     boost::asio::io_service io; // io service create
     boost::function<int (std::shared_ptr<std::vector<float>> ,
             unsigned int)> tmpFunction = tmpFunc; // boost function
     D3_Serial::RadarSerial *radarserial =

         new D3_Serial::RadarSerial(io, "/dev/ttyAMA0" , tmpFunction 
 
      radarserial->openSerial(921600);
 
      radarserial->requestData(22);
 
      io.run();
      std::cout<<"Hello"<<std::endl;
      delete radarserial;
 
      return -1;
 }

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).