FreeCalypso > hg > fc-rfcal-tools
view autocal/txpwrmeas.c @ 105:44c6a2b4d40a
INSTALL: we need fc-host-tools-r6 or later for ERROR_RFFAIL
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Sat, 09 Dec 2017 07:07:19 +0000 |
| parents | b313884c79fd |
| children | 94e8a410d6bd |
line wrap: on
line source
/* * This module contains the Tx power measurement function. */ #include <stdio.h> #include <stdlib.h> extern char tsid_response[]; do_txpwr_cal_setup(band, arfcn) char *band; unsigned arfcn; { char cmd[80]; sprintf(cmd, "txpwr-cal-setup %s %u\n", band, arfcn); tsid_command(cmd); return(0); } double tx_power_meas() { double meas; tsid_command("power-meas\n"); meas = atof(tsid_response + 1); return(meas); }
