+/*******************************************************************
+ *
+ * @brief Fills SlotOffset value for SearchSpace received by CU
+ *
+ * @details
+ *
+ * Function : extractSlotOffset
+ *
+ * Functionality: Fills SlotOffset received by CU
+ *
+ * @params[in] SearchSpace__monitoringSlotPeriodicityAndOffset *mSlotPeriodicityOffset,
+ * uint16_t *slotOffset
+ * @return void
+ *
+ *
+ ****************************************************************/
+void extractSlotOffset(struct SearchSpace__monitoringSlotPeriodicityAndOffset *mSlotPeriodicityAndOffset, uint16_t *slotOffset)
+{
+ switch(mSlotPeriodicityAndOffset->present)
+ {
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_NOTHING:
+ *slotOffset = NULLD;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl1:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl1;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl2:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl2;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl4:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl4;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl5:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl5;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl8:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl8;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl10:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl10;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl16:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl16;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl20:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl20;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl40:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl40;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl80:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl80;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl160:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl160;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl320:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl320;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl640:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl640;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl1280:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl1280;
+ break;
+ case SearchSpace__monitoringSlotPeriodicityAndOffset_PR_sl2560:
+ *slotOffset = mSlotPeriodicityAndOffset->choice.sl2560;
+ break;
+ default:
+ *slotOffset = 0;
+ }
+}
+
+