pusch_pdu->mcs_table=0;//0: notqam256 [TS38.214, table 5.1.3.1-1] - corresponds to nr_target_code_rate_table1 in PHY
pusch_pdu->data_scrambling_id=0;//It equals the higher-layer parameter Data-scrambling-Identity if configured and the RNTI equals the C-RNTI, otherwise L2 needs to set it to physical cell id.;
pusch_pdu->data_scrambling_id=0;//It equals the higher-layer parameter Data-scrambling-Identity if configured and the RNTI equals the C-RNTI, otherwise L2 needs to set it to physical cell id.;
pusch_pdu->dmrs_config_type=0;//dmrs-type 1 (the one with a single DMRS symbol in the beginning)
pusch_pdu->nrOfLayers=1;
pusch_pdu->ul_dmrs_scrambling_id=0;//If provided and the PUSCH is not a msg3 PUSCH, otherwise, L2 should set this to physical cell id.
//DMRS
pusch_pdu->scid=0;//DMRS sequence initialization [TS38.211, sec 6.4.1.1.1]. Should match what is sent in DCI 0_1, otherwise set to 0.
pusch_pdu->ul_dmrs_symb_pos=1;
//pusch_pdu->num_dmrs_cdm_grps_no_data;
pusch_pdu->dmrs_config_type=0;//dmrs-type 1 (the one with a single DMRS symbol in the beginning)
//pusch_pdu->dmrs_ports; //DMRS ports. [TS38.212 7.3.1.1.2] provides description between DCI 0-1 content and DMRS ports. Bitmap occupying the 11 LSBs with: bit 0: antenna port 1000 bit 11: antenna port 1011 and for each bit 0: DMRS port not used 1: DMRS port used
pusch_pdu->ul_dmrs_scrambling_id=0;//If provided and the PUSCH is not a msg3 PUSCH, otherwise, L2 should set this to physical cell id.
//Pusch Allocation in frequency domain [TS38.214, sec 6.1.2.2]
pusch_pdu->scid=0;//DMRS sequence initialization [TS38.211, sec 6.4.1.1.1]. Should match what is sent in DCI 0_1, otherwise set to 0.
pusch_pdu->resource_alloc=1;//type 1
//pusch_pdu->num_dmrs_cdm_grps_no_data;
//pusch_pdu->rb_bitmap;// for ressource alloc type 0
//pusch_pdu->dmrs_ports; //DMRS ports. [TS38.212 7.3.1.1.2] provides description between DCI 0-1 content and DMRS ports. Bitmap occupying the 11 LSBs with: bit 0: antenna port 1000 bit 11: antenna port 1011 and for each bit 0: DMRS port not used 1: DMRS port used
pusch_pdu->rb_start=0;
//Pusch Allocation in frequency domain [TS38.214, sec 6.1.2.2]
pusch_pdu->rb_size=50;
pusch_pdu->resource_alloc=1;//type 1
pusch_pdu->vrb_to_prb_mapping=0;
//pusch_pdu->rb_bitmap;// for ressource alloc type 0
pusch_pdu->frequency_hopping=0;
pusch_pdu->rb_start=0;
//pusch_pdu->tx_direct_current_location;//The uplink Tx Direct Current location for the carrier. Only values in the value range of this field between 0 and 3299, which indicate the subcarrier index within the carrier corresponding 1o the numerology of the corresponding uplink BWP and value 3300, which indicates "Outside the carrier" and value 3301, which indicates "Undetermined position within the carrier" are used. [TS38.331, UplinkTxDirectCurrentBWP IE]
pusch_pdu->rb_size=50;
pusch_pdu->uplink_frequency_shift_7p5khz=0;
pusch_pdu->vrb_to_prb_mapping=0;
//Resource Allocation in time domain
pusch_pdu->frequency_hopping=0;
pusch_pdu->start_symbol_index=2;
//pusch_pdu->tx_direct_current_location;//The uplink Tx Direct Current location for the carrier. Only values in the value range of this field between 0 and 3299, which indicate the subcarrier index within the carrier corresponding 1o the numerology of the corresponding uplink BWP and value 3300, which indicates "Outside the carrier" and value 3301, which indicates "Undetermined position within the carrier" are used. [TS38.331, UplinkTxDirectCurrentBWP IE]
pusch_pdu->nr_of_symbols=12;
pusch_pdu->uplink_frequency_shift_7p5khz=0;
//Optional Data only included if indicated in pduBitmap
//Resource Allocation in time domain
pusch_pdu->pusch_data.rv_index=0;
pusch_pdu->start_symbol_index=2;
pusch_pdu->pusch_data.harq_process_id=0;
pusch_pdu->nr_of_symbols=12;
pusch_pdu->pusch_data.new_data_indicator=0;
//Optional Data only included if indicated in pduBitmap