diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-07-07 07:11:26 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-11-19 17:35:07 +0700 |
commit | 6ab67cc58704089ebf5a27f973ebaf36943e435f (patch) | |
tree | 1288cd06f7fde41b36eb1385ec01b8e14eafdfb2 /src/host/trxcon/sched_lchan_desc.c | |
parent | 228d42bc303284a9a7a1a8ad645d690b03ab7a26 (diff) |
host/trxcon/scheduler: implement SCH decoding
Change-Id: Ic5e7416271d647752cd1aaf90de51fa48286798e
Diffstat (limited to 'src/host/trxcon/sched_lchan_desc.c')
-rw-r--r-- | src/host/trxcon/sched_lchan_desc.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/host/trxcon/sched_lchan_desc.c b/src/host/trxcon/sched_lchan_desc.c index 93927a63..1ff6e144 100644 --- a/src/host/trxcon/sched_lchan_desc.c +++ b/src/host/trxcon/sched_lchan_desc.c @@ -44,6 +44,10 @@ int rx_data_fn(struct trx_instance *trx, struct trx_ts *ts, uint32_t fn, enum trx_lchan_type chan, uint8_t bid, sbit_t *bits, uint16_t nbits, int8_t rssi, float toa); +int rx_sch_fn(struct trx_instance *trx, struct trx_ts *ts, + uint32_t fn, enum trx_lchan_type chan, uint8_t bid, + sbit_t *bits, uint16_t nbits, int8_t rssi, float toa); + const struct trx_lchan_desc trx_lchan_desc[_TRX_CHAN_MAX] = { { TRXC_IDLE, "IDLE", @@ -69,8 +73,11 @@ const struct trx_lchan_desc trx_lchan_desc[_TRX_CHAN_MAX] = { 0x00, LID_DEDIC, 0x00, 0x00, - /* We already have clock indications from TRX */ - NULL, NULL, + /** + * We already have clock indications from TRX, + * but we also need BSIC (BCC / NCC) value. + */ + rx_sch_fn, NULL, }, { TRXC_BCCH, "BCCH", |