X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fphy_stub%2Fphy_stub.h;h=afb8b22335d59bc0df7dcbf7b12c13c6e81599b5;hb=3ba126e9d0aff0ceca5012c27ffd4a3722fdbc4e;hp=eda0f17324e038ed15905d5b5fb39d1d71bf9b85;hpb=6d01b1cb797bb2b47115eee21ad7d1a6ff3fcfe7;p=o-du%2Fl2.git diff --git a/src/phy_stub/phy_stub.h b/src/phy_stub/phy_stub.h index eda0f1732..afb8b2233 100644 --- a/src/phy_stub/phy_stub.h +++ b/src/phy_stub/phy_stub.h @@ -17,21 +17,27 @@ *******************************************************************************/ #include +#ifdef NR_TDD +#define MAX_SLOT_VALUE 19 +#else #define MAX_SLOT_VALUE 9 +#endif #define MAX_SFN_VALUE 1023 #define NR_PCI 1 #define SLOT_DELAY 3 -uint16_t sfnValue = 0; -uint16_t slotValue = 0; -bool rachIndSent = false; -bool msg3Sent = false; -bool msg5ShortBsrSent = false; -bool msg5Sent = false; -bool dlDedMsg = false; -bool msgSecurityModeComp = false; -bool msgRrcReconfiguration = false; -bool msgRegistrationComp = false; +bool slotIndicationStarted; +uint16_t sfnValue; +uint16_t slotValue; +bool rachIndSent; +bool msg3Sent; +bool msg5ShortBsrSent; +bool msg5Sent; +bool dlDedMsg; +bool msgSecurityModeComp; +bool msgRrcReconfiguration; +bool msgRegistrationComp; + typedef enum { MSG_TYPE_MSG3, @@ -50,6 +56,8 @@ void fillMsgHeader ARGS((fapi_msg_t *hdr, uint16_t msgType, uint16_t msgLen)); #endif void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg); void l1StartConsoleHandler(); +void l1HdlSlotIndicaion(bool); +void GenerateTicks(); /********************************************************************** End of file