|
|
|
@ -19,14 +19,22 @@
|
|
|
|
|
namespace srsran {
|
|
|
|
|
|
|
|
|
|
///< AM NR PDU header
|
|
|
|
|
typedef struct {
|
|
|
|
|
struct rlc_am_nr_pdu_header_t {
|
|
|
|
|
rlc_am_nr_pdu_header_t() = default;
|
|
|
|
|
rlc_am_nr_pdu_header_t(const rlc_am_nr_pdu_header_t& h) = default;
|
|
|
|
|
rlc_am_nr_pdu_header_t& operator=(const rlc_am_nr_pdu_header_t&) = default;
|
|
|
|
|
rlc_am_nr_pdu_header_t(rlc_am_nr_pdu_header_t&& h) = default;
|
|
|
|
|
~rlc_am_nr_pdu_header_t() = default;
|
|
|
|
|
|
|
|
|
|
rlc_am_nr_pdu_header_t& operator=(rlc_am_nr_pdu_header_t&& h) = default;
|
|
|
|
|
|
|
|
|
|
rlc_dc_field_t dc; ///< Data/Control (D/C) field
|
|
|
|
|
uint8_t p; ///< Polling bit
|
|
|
|
|
rlc_nr_si_field_t si; ///< Segmentation info
|
|
|
|
|
rlc_am_nr_sn_size_t sn_size; ///< Sequence number size (12 or 18 bits)
|
|
|
|
|
uint32_t sn; ///< Sequence number
|
|
|
|
|
uint16_t so; ///< Sequence offset
|
|
|
|
|
} rlc_am_nr_pdu_header_t;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct rlc_amd_pdu_nr_t {
|
|
|
|
|
rlc_am_nr_pdu_header_t header;
|
|
|
|
|