sci: add SCI format 1 transmission format flag

master
Andre Puschmann 5 years ago
parent 7109379d83
commit d6e0153b40

@ -92,6 +92,11 @@ typedef struct SRSLTE_API {
// Retransmission index (1 bit) // Retransmission index (1 bit)
bool retransmission; bool retransmission;
// Transmission format (1 bit)
// 1 means transmission format including rate-matching and TBS scaling
// 0 means transmission format including puncturing and no TBS-scaling
uint32_t transmission_format;
} srslte_sci_t; } srslte_sci_t;
SRSLTE_API int SRSLTE_API int

@ -157,6 +157,7 @@ int srslte_sci_format1_unpack(srslte_sci_t* q, uint8_t* input)
q->time_gap = srslte_bit_pack(&input, 4); q->time_gap = srslte_bit_pack(&input, 4);
q->mcs_idx = srslte_bit_pack(&input, 5); q->mcs_idx = srslte_bit_pack(&input, 5);
q->retransmission = srslte_bit_pack(&input, 1); q->retransmission = srslte_bit_pack(&input, 1);
q->transmission_format = srslte_bit_pack(&input, 1);
// Sanity check // Sanity check
if (q->mcs_idx >= 29) { if (q->mcs_idx >= 29) {
@ -184,11 +185,12 @@ void srslte_sci_info(const srslte_sci_t* q, char* str, uint32_t len)
n = srslte_print_check(str, n = srslte_print_check(str,
SRSLTE_SCI_MSG_MAX_LEN, SRSLTE_SCI_MSG_MAX_LEN,
n, n,
", priority=%i, res_rsrv=%i, t_gap=%i, rtx=%i\n", ", priority=%i, res_rsrv=%i, t_gap=%i, rtx=%i, txformat=%d\n",
q->priority, q->priority,
q->resource_reserv, q->resource_reserv,
q->time_gap, q->time_gap,
q->retransmission); q->retransmission,
q->transmission_format);
} }
} }

Loading…
Cancel
Save