summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-07 20:42:17 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-07 20:56:12 +0100
commit97c8b6f33b1a00ed1c138070ca14faaa6f71cfc6 (patch)
treeb8951a27ae92d4924e8cca7599eafb777143e2af /include
parent5f3ead20158d059d022a11e121861e14bd0674df (diff)
start to use libosmocore within the firmware
* remove linuxlist.h copy and use osmocore * don't put 'struct gsm_time' into l1ctl packets * include rx_level and snr for each burst in l1ctl * properly build libosmocore.a for target * move gsmtime functions into libosmocore * move ctype.h to standard location
Diffstat (limited to 'include')
-rw-r--r--include/l1a_l23_interface.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/include/l1a_l23_interface.h b/include/l1a_l23_interface.h
index 32fa4881..7c756f9a 100644
--- a/include/l1a_l23_interface.h
+++ b/include/l1a_l23_interface.h
@@ -37,14 +37,6 @@
* that it will avoid some unaligned access.
*/
-struct gsm_time {
- uint32_t fn; /* FN count */
- uint16_t t1; /* FN div (26*51) */
- uint8_t t2; /* FN modulo 26 */
- uint8_t t3; /* FN modulo 51 */
- uint8_t tc;
-} __attribute__((packed));
-
/*
* downlink info ... down from the BTS..
*/
@@ -58,12 +50,13 @@ struct l1ctl_info_dl {
/* GSM 08.58 link identifier (9.3.2) */
uint8_t link_id;
+ uint32_t frame_nr;
+
/* the ARFCN and the band. FIXME: what about MAIO? */
uint16_t band_arfcn;
- struct gsm_time time;
- uint8_t rx_level;
- uint16_t snr[4];
+ uint8_t rx_level; /* 0 .. 63 in typical GSM notation (dBm+110) */
+ uint8_t snr; /* Signal/Noise Ration (dB) */
} __attribute__((packed));
/* new CCCH was found. This is following the header */