// reserved; // depending on N_reserved (sl-NumReservedBits) and sl-IndicationUE-B
// note R17 dependence no sl_IndicationUE-B needs to be added here
AssertFatal(sl_res_pool->sl_PSCCH_Config_r16!=NULL,"sl_res_pool->sl_PSCCH_Config_r16 is null\n");
AssertFatal(sl_res_pool->sl_PSCCH_Config_r16->choice.setup!=NULL,"sl_res_pool->sl_PSCCH_Config_r16->choice.setup is null\n");
AssertFatal(sl_res_pool->sl_PSCCH_Config_r16->choice.setup->sl_NumReservedBits_r16!=NULL,"sl_res_pool->sl_PSCCH_Config_r16->choice.setup->sl_NumReservedBits_r16 is null\n");
// communication_range; // 4 bits depending on sl-ZoneConfigMCR-Index, format 2B
// note fill in for R17
if(0)size+=4;
}
elseif(format==NR_SL_SCI_FORMAT_2C){
// providing_req_ind; // 1 bit, format 2C
size+=1;
// resource_combinations; // depending on n_subChannel^SL (sl-NumSubchennel), N_rsv_period (sl-ResourceReservePeriodList) and sl-MultiReservedResource, format 2C
// first_resource_location; // 8 bits, format 2C
size+=8;
// reference_slot_location; // depending on mu, format 2C
// resource_set_type; // 1 bit, format 2C
size+=1;
// lowest_subchannel_indices; // depending on n_subChannel^SL, format 2C
uint8_tbeta_offset_indicator;// 2 bits - depending sl-BetaOffsets2ndSCI and Table 8.3.1.1-2
uint8_tnumber_of_dmrs_port;// 1 bit - Table 8.3.1.1-3
uint8_tmcs;// 5 bits
dci_field_tadditional_mcs;// depending on sl-Additional-MCS-Table
dci_field_tpsfch_overhead;// depending on sl-PSFCH-Period
dci_field_treserved;// depending on N_reserved (sl-NumReservedBits) and sl-IndicationUE-B
dci_field_tconflict_information_receiver;// depending on sl-IndicationUE-B
// 2nd stage fields
uint8_tharq_pid;// 4 bits
uint8_tndi;// 1 bit
uint8_trv_index;// 2 bits
uint8_tsource_id;// 8 bits
uint16_tdest_id;// 16 bits
uint8_tharq_feedback;//1 bit
uint8_tcast_type;// 2 bits formac 2A
uint8_tcsi_req;// 1 bit format 2A, format 2C
uint16_tzone_id;// 12 bits format 2B
dci_field_tcommunication_range;// 4 bits depending on sl-ZoneConfigMCR-Index, format 2B
uint8_tproviding_req_ind;// 1 bit, format 2C
dci_field_tresource_combinations;// depending on n_subChannel^SL (sl-NumSubchennel), N_rsv_period (sl-ResourceReservePeriodList) and sl-MultiReservedResource, format 2C
uint8_tfirst_resource_location;// 8 bits, format 2C
dci_field_treference_slot_location;// depending on mu, format 2C
uint8_tresource_set_type;// 1 bit, format 2C
dci_field_tlowest_subchannel_indices;// depending on n_subChannel^SL, format 2C