*******************************************************************************/
#include <unistd.h>
+#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;
+
+/* UE specific information */
+typedef struct ueCb
+{
+ uint8_t ueId;
+ uint16_t crnti;
+ bool rachIndSent;
+ bool msg3Sent;
+ bool msg5ShortBsrSent;
+ bool msg5Sent;
+ bool dlDedMsg;
+ bool msgSecurityModeComp;
+ bool msgRrcReconfiguration;
+ bool msgRegistrationComp;
+}UeCb;
+
+/* Database to store information for all UE */
+typedef struct ueDb
+{
+ uint8_t numActvUe;
+ UeCb ueCb[MAX_NUM_UE];
+}UeDb;
+
+UeDb ueDb;
+
typedef enum
{
MSG_TYPE_MSG3,
#endif
void procPhyMessages(uint16_t msgType, uint32_t msgSize, void *msg);
void l1StartConsoleHandler();
+void l1HdlSlotIndicaion(bool);
+void GenerateTicks();
/**********************************************************************
End of file