aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-05-14 03:21:59 +0700
committerfixeria <axilirator@gmail.com>2020-05-15 17:56:41 +0000
commit830b8dbb140b4898c0c24adc7223f82b23991804 (patch)
tree0eaa1ca4899f9b76ff4c9f3922a3b21ac8dac4e0
parent63bee45411dbf49ec82e0fa32a1b817d0742e1fb (diff)
libosmogsm: add Doxygen docs for gsm0502_hop_seq_gen()
-rw-r--r--src/gsm/gsm0502.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gsm/gsm0502.c b/src/gsm/gsm0502.c
index 7ab6343a..e34d3f57 100644
--- a/src/gsm/gsm0502.c
+++ b/src/gsm/gsm0502.c
@@ -220,7 +220,16 @@ static const uint8_t rn_table[114] = {
125, 99, 17, 123,
};
-/*! Hopping sequence generation as per 3GPP TS 45.002, section 6.2.3. */
+/*! Hopping sequence generation as per 3GPP TS 45.002, section 6.2.3.
+ * \param[in] t GSM time (TDMA frame number, T1/T2/T3).
+ * \param[in] hsn Hopping Sequence Number.
+ * \param[in] maio Mobile Allocation Index Offset.
+ * \param[in] n number of entries in mobile allocation (arfcn table).
+ * \param[in] ma array of ARFCNs (sorted in ascending order)
+ * representing the Mobile Allocation.
+ * \returns ARFCN to use for given input parameters at time 't'
+ * or Mobile Allocation Index if ma == NULL.
+ */
uint16_t gsm0502_hop_seq_gen(const struct gsm_time *t,
uint8_t hsn, uint8_t maio,
size_t n, const uint16_t *ma)