edge: Add a bitvec based Decoding::extract_rbb function
This shall replace the old one after the transition to bitvec based RBBs. Sponsored-by: On-Waves ehf
This commit is contained in:
parent
192bf33ffb
commit
f2f24b0959
|
@ -329,6 +329,18 @@ void Decoding::extract_rbb(const uint8_t *rbb, char *show_rbb)
|
|||
show_rbb[64] = '\0';
|
||||
}
|
||||
|
||||
void Decoding::extract_rbb(const struct bitvec *rbb, char *show_rbb)
|
||||
{
|
||||
unsigned int i;
|
||||
for (i = 0; i < rbb->cur_bit; i++) {
|
||||
uint8_t bit;
|
||||
bit = bitvec_get_bit_pos(rbb, i);
|
||||
show_rbb[i] = bit == 1 ? 'R' : 'I';
|
||||
}
|
||||
|
||||
show_rbb[i] = '\0';
|
||||
}
|
||||
|
||||
int Decoding::rlc_parse_ul_data_header(struct gprs_rlc_data_info *rlc,
|
||||
const uint8_t *data, GprsCodingScheme cs)
|
||||
{
|
||||
|
|
|
@ -42,6 +42,7 @@ public:
|
|||
static uint8_t get_egprs_ms_class_by_capability(MS_Radio_Access_capability_t *cap);
|
||||
|
||||
static void extract_rbb(const uint8_t *rbb, char *extracted_rbb);
|
||||
static void extract_rbb(const struct bitvec *rbb, char *show_rbb);
|
||||
|
||||
static int rlc_parse_ul_data_header(struct gprs_rlc_data_info *rlc,
|
||||
const uint8_t *data, GprsCodingScheme cs);
|
||||
|
|
Loading…
Reference in New Issue