summaryrefslogtreecommitdiffstats
path: root/include/l1ctl_proto.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-24 19:36:19 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-24 19:47:11 +0100
commit20971da499eafd11ce71f61a930ab0c1aa202fa8 (patch)
treefab87de1d3d82d0af3bb1348841235c708f77ded /include/l1ctl_proto.h
parent08bc45147bb58700236c4d455080cdeea9cc27a8 (diff)
rxqual: Begin to implement the rxqual calculationzecke/rxqual-full
* Make num_biterr 16bit because the API is 16bit. * Add the num_bits to count the bits transferred. * Re-order and add manual padding due the increase in size. * Add the bits to struct rx_meas_stat, increment and reset them. * Calculation for the sub_rxqual is missing, so is DTX code in general * Calculation for TCH/F, TCH/H in speech mode might be wrong
Diffstat (limited to 'include/l1ctl_proto.h')
-rw-r--r--include/l1ctl_proto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/l1ctl_proto.h b/include/l1ctl_proto.h
index 4b9540e9..14c03967 100644
--- a/include/l1ctl_proto.h
+++ b/include/l1ctl_proto.h
@@ -100,10 +100,14 @@ struct l1ctl_info_dl {
uint32_t frame_nr;
+ uint16_t num_biterr; /* number of estimated bit errors (BER) */
+ uint16_t num_bits; /* number of transfered bits */
+
uint8_t rx_level; /* 0 .. 63 in typical GSM notation (dBm+110) */
uint8_t snr; /* Signal/Noise Ration (dB) */
- uint8_t num_biterr;
+
uint8_t fire_crc;
+ uint8_t padding[1];
uint8_t payload[0];
} __attribute__((packed));