Commit 3083f4f3 authored by ndomingues's avatar ndomingues

Common parameters to apply successRAR

parent c4b51b78
......@@ -244,6 +244,12 @@ typedef struct {
uint8_t E: 1;
} __attribute__ ((__packed__)) NR_RA_HEADER_RAPID;
typedef struct {
uint8_t RAPID: 6;
uint8_t T1: 1;
uint8_t E: 1;
} __attribute__((__packed__)) NR_RA_HEADER_RAPID_MSGB;
/*!\brief RAR MAC subheader with Backoff Indicator */
typedef struct {
uint8_t BI: 4;
......@@ -252,7 +258,23 @@ typedef struct {
uint8_t E: 1;
} __attribute__ ((__packed__)) NR_RA_HEADER_BI;
// TS 38.321 ch. 6.2.3
typedef struct {
uint8_t BI: 4;
uint8_t R: 1;
uint8_t T2: 1;
uint8_t T1: 1;
uint8_t E: 1;
} __attribute__((__packed__)) NR_RA_HEADER_BI_MSGB;
typedef struct {
uint8_t R: 4;
uint8_t S: 1;
uint8_t T2: 1;
uint8_t T1: 1;
uint8_t E: 1;
} __attribute__((__packed__)) NR_RA_HEADER_SUCCESS_RAR_MSGB;
// TS 38.321 Sec. 6.2.3
typedef struct {
uint8_t TA1: 7; // octet 1 [6:0]
uint8_t R: 1; // octet 1 [7]
......@@ -265,6 +287,38 @@ typedef struct {
uint8_t TCRNTI_2: 8; // octet 7 [7:0]
} __attribute__ ((__packed__)) NR_MAC_RAR;
// TS 38.321 Sec. 6.2.3
typedef struct {
uint8_t TA1: 7; // octet 1 [6:0]
uint8_t R: 1; // octet 1 [7]
uint8_t UL_GRANT_1: 3; // octet 2 [2:0]
uint8_t TA2: 5; // octet 2 [7:3]
uint8_t UL_GRANT_2: 8; // octet 3 [7:0]
uint8_t UL_GRANT_3: 8; // octet 4 [7:0]
uint8_t UL_GRANT_4: 8; // octet 5 [7:0]
uint8_t TCRNTI_1: 8; // octet 6 [7:0]
uint8_t TCRNTI_2: 8; // octet 7 [7:0]
} __attribute__((__packed__)) NR_MAC_RAR_MSGB;
// TS 38.321 Sec. 6.2.3
typedef struct {
uint8_t CONT_RES_1: 8; // octet 1 [7:0]
uint8_t CONT_RES_2: 8; // octet 2 [7:0]
uint8_t CONT_RES_3: 8; // octet 3 [7:0]
uint8_t CONT_RES_4: 8; // octet 4 [7:0]
uint8_t CONT_RES_5: 8; // octet 5 [7:0]
uint8_t CONT_RES_6: 8; // octet 6 [7:0]
uint8_t HARQ_FTI: 3; // octet 7 [2:0]
uint8_t TPC: 2; // octet 7 [4:3]
uint8_t CH_ACESS_CPEXT: 2; // octet 7 [6:5]
uint8_t R: 1; // octet 7 [7]
uint8_t TA1: 4; // octet 8 [3:0]
uint8_t PUCCH_RI: 4; // octet 8 [7:4]
uint8_t TA2: 8; // octet 9 [7:0]
uint8_t CRNTI_1: 8; // octet 10 [7:0]
uint8_t CRNTI_2: 8; // octet 11 [7:0]
} __attribute__((__packed__)) NR_MAC_SUCCESS_RAR;
// DCI pdu structures. Used by both gNB and UE.
typedef struct {
uint32_t val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment