Home | History | Annotate | Download | only in c++

Lines Matching refs:radio

46   cout << "to query the radio configuration and output it.  NOTE: the"
48 cout << "radio must be in CONFIG mode for this to work."
55 cout << "another radio."
67 // Instantiate a HMTRP radio device on uart 0
69 upm::HMTRP* radio = new upm::HMTRP(0);
72 if (!radio->setupTty(B9600))
80 // By default, this radio simply transmits data sent via writeData()
90 // configuration query and output the results. The radio must be in
103 if (radio->getConfig(&freq, &dataRate, &rxBandwidth, &modulation,
106 cout << "Radio configuration:" << endl;
115 cerr << "getConfig() failed. Make sure the radio is in "
130 if (radio->dataAvailable())
133 int rv = radio->readData(radioBuffer, bufferLength - 1);
154 radio->writeData((char *)hello, strlen(hello) + 1);
164 delete radio;