[srslte-users] test srslte_bit_copy()
Steffen Heber
hopeless.heber at gmail.com
Thu Jun 7 09:14:18 UTC 2018
Hello,
I am trying to test the srslte_bit_copy() using which I copy a buffer (bf2)
at the end of another buffer (bf1). I am not getting the expected output
here. What am I doing wrong here?
void test_srslte_bit_copy(){
LIBLTE_BIT_MSG_STRUCT bf1, bf2;
bf1.msg[0] = 1;
bf1.msg[1] = 0;
bf1.msg[2] = 1;
bf2.msg[0] = 0;
bf2.msg[1] = 1;
bf2.msg[2] = 0;
bf1.N_bits = bf2.N_bits = 3;
srslte_bit_copy(bf1.msg, bf1.N_bits, bf2.msg, 0, bf2.N_bits);
bf1.N_bits = bf1.N_bits + bf2.N_bits;
srslte_bit_fprint(stdout, bf1.msg, bf1.N_bits);
}
Expected output: [1,0,1,0,1,0]
Test output : [1,0,1,0,0,0]
Regards,
Steffen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20180607/e3b97cf9/attachment.htm>
More information about the srsran-users
mailing list