Lines Matching refs:buf
178 char buf[4]; in checkOK() local
180 int rv = readData(buf, 4, defaultDelay); in checkOK()
190 if (buf[0] == 'O' && buf[1] == 'K' && in checkOK()
191 buf[2] == '\r' && buf[3] == '\n') in checkOK()
223 char buf[16]; in getConfig() local
224 int rv = readData(buf, 16, defaultDelay); in getConfig()
236 *freq = ( ((buf[0] & 0xff) << 24) | in getConfig()
237 ((buf[1] & 0xff) << 16) | in getConfig()
238 ((buf[2] & 0xff) << 8) | in getConfig()
239 (buf[3] & 0xff) ); in getConfig()
244 *dataRate = ( ((buf[4] & 0xff) << 24) | in getConfig()
245 ((buf[5] & 0xff) << 16) | in getConfig()
246 ((buf[6] & 0xff) << 8) | in getConfig()
247 (buf[7] & 0xff) ); in getConfig()
252 *rxBandwidth = ( ((buf[8] & 0xff) << 8) | in getConfig()
253 (buf[9] & 0xff) ); in getConfig()
258 *modulation = buf[10] & 0xff; in getConfig()
263 *txPower = buf[11] & 0xff; in getConfig()
268 *uartBaud = ( ((buf[12] & 0xff) << 24) | in getConfig()
269 ((buf[13] & 0xff) << 16) | in getConfig()
270 ((buf[14] & 0xff) << 8) | in getConfig()
271 (buf[15] & 0xff) ); in getConfig()
439 char buf; in getRFSignalStrength() local
440 int rv = readData(&buf, 1, defaultDelay); in getRFSignalStrength()
450 *strength = (uint8_t)buf; in getRFSignalStrength()
471 char buf; in getModSignalStrength() local
472 int rv = readData(&buf, 1, defaultDelay); in getModSignalStrength()
482 *strength = (uint8_t)buf; in getModSignalStrength()