<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/21726">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">protocol/gsm_08_58.h: add ip.access Power Control structures<br><br>Change-Id: I9430bcb79c269efb4f9527f565cf4e12e4444940<br>Related: SYS#4918<br>---<br>M include/osmocom/gsm/protocol/gsm_08_58.h<br>1 file changed, 53 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/26/21726/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/include/osmocom/gsm/protocol/gsm_08_58.h b/include/osmocom/gsm/protocol/gsm_08_58.h</span><br><span>index 1ed4438..dad84ef 100644</span><br><span>--- a/include/osmocom/gsm/protocol/gsm_08_58.h</span><br><span>+++ b/include/osmocom/gsm/protocol/gsm_08_58.h</span><br><span>@@ -766,6 +766,15 @@</span><br><span> </span><br><span> };</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/*! Measurement averaging method */</span><br><span style="color: hsl(120, 100%, 40%);">+enum ipac_preproc_ave_method {</span><br><span style="color: hsl(120, 100%, 40%);">+    RSL_IPACC_AVE_UNWEIGHTED        = 0x00,</span><br><span style="color: hsl(120, 100%, 40%);">+       RSL_IPACC_AVE_WEIGHTED          = 0x01,</span><br><span style="color: hsl(120, 100%, 40%);">+       RSL_IPACC_AVE_MOD_MEDIAN        = 0x02,</span><br><span style="color: hsl(120, 100%, 40%);">+       /* EWMA is an Osmocom-specific extension */</span><br><span style="color: hsl(120, 100%, 40%);">+   RSL_IPACC_AVE_OSMO_EWMA         = 0x03,</span><br><span style="color: hsl(120, 100%, 40%);">+};</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> struct ipac_preproc_ave_cfg {</span><br><span> #if OSMO_IS_LITTLE_ENDIAN</span><br><span>  uint8_t h_reqave:5,</span><br><span>@@ -780,6 +789,22 @@</span><br><span> #endif</span><br><span> }__attribute__ ((packed));</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/*! MS/BS Power Control Thresholds */</span><br><span style="color: hsl(120, 100%, 40%);">+struct ipac_preproc_pc_thresh {</span><br><span style="color: hsl(120, 100%, 40%);">+#if OSMO_IS_LITTLE_ENDIAN</span><br><span style="color: hsl(120, 100%, 40%);">+     uint8_t l_rxlev:6, reserved_l_rxlev:2;</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t u_rxlev:6, reserved_u_rxlev:2;</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t l_rxqual:3, reserved_l_rxqual:1,</span><br><span style="color: hsl(120, 100%, 40%);">+              u_rxqual:3, reserved_u_rxqual:1;</span><br><span style="color: hsl(120, 100%, 40%);">+#elif OSMO_IS_BIG_ENDIAN</span><br><span style="color: hsl(120, 100%, 40%);">+    uint8_t reserved_l_rxlev:2, l_rxlev:6;</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t reserved_u_rxlev:2, u_rxlev:6;</span><br><span style="color: hsl(120, 100%, 40%);">+        uint8_t reserved_l_rxqual:1, l_rxqual:3,</span><br><span style="color: hsl(120, 100%, 40%);">+              reserved_u_rxqual:1, u_rxqual:3;</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+}__attribute__ ((packed));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/*! Handover Thresholds */</span><br><span> struct ipac_preproc_ho_thresh {</span><br><span> #if OSMO_IS_LITTLE_ENDIAN</span><br><span>   uint8_t l_rxlev_ul_h:6,</span><br><span>@@ -807,6 +832,34 @@</span><br><span> #endif</span><br><span> }__attribute__ ((packed));</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/*! PC Threshold Comparators */</span><br><span style="color: hsl(120, 100%, 40%);">+struct ipac_preproc_pc_comp {</span><br><span style="color: hsl(120, 100%, 40%);">+#if OSMO_IS_LITTLE_ENDIAN</span><br><span style="color: hsl(120, 100%, 40%);">+ uint8_t p1:5, reserved_p1:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t n1:5, reserved_n1:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t p2:5, reserved_p2:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t n2:5, reserved_n2:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t p3:5, reserved_p3:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t n3:5, reserved_n3:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t p4:5, reserved_p4:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t n4:5, reserved_n4:3;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t pc_interval:5, reserved_pc:3;</span><br><span style="color: hsl(120, 100%, 40%);">+ uint8_t red_step_size:4, inc_step_size:4;</span><br><span style="color: hsl(120, 100%, 40%);">+#elif OSMO_IS_BIG_ENDIAN</span><br><span style="color: hsl(120, 100%, 40%);">+   uint8_t reserved_p1:3, p1:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_n1:3, n1:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_p2:3, p2:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_n2:3, n2:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_p3:3, p3:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_n3:3, n3:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_p4:3, p4:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_n4:3, n4:5;</span><br><span style="color: hsl(120, 100%, 40%);">+  uint8_t reserved_pc:3, pc_interval:5;</span><br><span style="color: hsl(120, 100%, 40%);">+ uint8_t inc_step_size:4, red_step_size:4;</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+}__attribute__ ((packed));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+/*! HO Threshold Comparators */</span><br><span> struct ipac_preproc_ho_comp {</span><br><span> #if OSMO_IS_LITTLE_ENDIAN</span><br><span>       uint8_t p5:5,</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/21726">change 21726</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/21726"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I9430bcb79c269efb4f9527f565cf4e12e4444940 </div>
<div style="display:none"> Gerrit-Change-Number: 21726 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>