From 97c8b6f33b1a00ed1c138070ca14faaa6f71cfc6 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 7 Mar 2010 20:42:17 +0100 Subject: 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 --- include/l1a_l23_interface.h | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'include') 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 */ -- cgit v1.2.3