Searched refs:p_dat (Results 1 – 3 of 3) sorted by relevance
/external/libiio/src/examples/ |
D | ad9361-iiostream.c | 252 char *p_dat, *p_end; in main() local 266 for (p_dat = (char *)iio_buffer_first(rxbuf, rx0_i); p_dat < p_end; p_dat += p_inc) { in main() 268 const int16_t i = ((int16_t*)p_dat)[0]; // Real (I) in main() 269 const int16_t q = ((int16_t*)p_dat)[1]; // Imag (Q) in main() 270 ((int16_t*)p_dat)[0] = q; in main() 271 ((int16_t*)p_dat)[1] = i; in main() 277 for (p_dat = (char *)iio_buffer_first(txbuf, tx0_i); p_dat < p_end; p_dat += p_inc) { in main() 281 ((int16_t*)p_dat)[0] = 0 << 4; // Real (I) in main() 282 ((int16_t*)p_dat)[1] = 0 << 4; // Imag (Q) in main()
|
D | ad9371-iiostream.c | 264 char *p_dat, *p_end; in main() local 278 for (p_dat = iio_buffer_first(rxbuf, rx0_i); p_dat < p_end; p_dat += p_inc) { in main() 280 const int16_t i = ((int16_t*)p_dat)[0]; // Real (I) in main() 281 const int16_t q = ((int16_t*)p_dat)[1]; // Imag (Q) in main() 282 ((int16_t*)p_dat)[0] = q; in main() 283 ((int16_t*)p_dat)[1] = i; in main() 289 for (p_dat = iio_buffer_first(txbuf, tx0_i); p_dat < p_end; p_dat += p_inc) { in main() 293 ((int16_t*)p_dat)[0] = 0 << 2; // Real (I) in main() 294 ((int16_t*)p_dat)[1] = 0 << 2; // Imag (Q) in main()
|
D | dummy-iiostream.c | 286 void *p_dat, *p_end; in main() local 302 for (p_dat = iio_buffer_first(rxbuf, channels[channel_count-1]); p_dat < p_end; p_dat += p_inc) { in main() 303 now_ts = (((int64_t *)p_dat)[0]); in main() 317 for (p_dat = iio_buffer_first(rxbuf, channels[i]); p_dat < p_end; p_dat += p_inc) { in main() 320 printf("%i ", ((int16_t *)p_dat)[j]); in main() 322 printf("%ld ", ((int64_t *)p_dat)[j]); in main()
|