FreeCalypso > hg > fc-rfcal-tools
annotate autocal/txpwrmeas.c @ 54:21f6dba5c4df
fc-rfcal-txcheck ready to test
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 27 May 2017 16:03:40 +0000 |
parents | |
children | b313884c79fd |
rev | line source |
---|---|
54
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 * This module contains the Tx power measurement function. |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 */ |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 #include <stdio.h> |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 #include <stdlib.h> |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 extern char tsid_response[]; |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 double |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 tx_power_meas() |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 { |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 double meas; |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 tsid_command("power-meas\n"); |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 meas = atof(tsid_response + 1); |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 return(meas); |
21f6dba5c4df
fc-rfcal-txcheck ready to test
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 } |