X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fphy_stub%2Fphy_stub.h;h=48097cf3ad01d4d95aa4ebb55d3566711dc8ec98;hb=c39df493d33e19557dbaded684cf6441c3ab8884;hp=669eb3eaccaaba83ba8e69898f1b1c37685fbb97;hpb=2b1e3e044e619637fafa8829789d6798d8f9bdb0;p=o-du%2Fl2.git diff --git a/src/phy_stub/phy_stub.h b/src/phy_stub/phy_stub.h index 669eb3eac..48097cf3a 100644 --- a/src/phy_stub/phy_stub.h +++ b/src/phy_stub/phy_stub.h @@ -35,11 +35,17 @@ #define SLOT_DELAY 3 #define NUM_DRB_TO_PUMP_DATA 3 #define NUM_UL_PACKETS 1 + /*UE Ids for RACH IND*/ #define UE_IDX_0 0 #define UE_IDX_1 1 #define UE_IDX_2 2 +/* Default RA Preamble index to be used when Rach Indication is triggered from + * PHY stub */ +#define CB_RA_PREAMBLE_IDX 3 /* For contention based RA */ +#define CF_RA_PREAMBLE_IDX 8 /* For contention free RA */ + bool slotIndicationStarted; uint16_t sfnValue; uint16_t slotValue; @@ -59,13 +65,14 @@ typedef struct ueCb uint8_t ueId; uint16_t crnti; bool rachIndSent; + bool isCFRA; bool msg3Sent; bool msg5ShortBsrSent; bool msg5Sent; bool dlDedMsg; bool msgSecurityModeComp; - bool msgRrcReconfiguration; - bool msgRegistrationComp; + bool msgRrcReconfigComp; + bool msgRegistrationComp; uint8_t rlcSnForSrb1; /* Sequence number of PDU at RLC for AM mode */ uint8_t pdcpSn; /* Sequence number of PDU at PDCP */ }UeCb; @@ -119,6 +126,8 @@ uint16_t l1BuildAndSendSlotIndication(); uint16_t l1BuildAndSendStopInd(); int inet_pton(int af, const char *sourc, void *dst); void *establishConnectionWithPeerL1(void *args); +uint16_t l1BuildAndSendRachInd(uint16_t slot, uint16_t sfn, uint8_t raPreambleIdx); + /********************************************************************** End of file **********************************************************************/