%% Get DCI Message Using UE-Specific Configuration
% Using the UE-specific channel structure, chs, extend the DCI formats to include optional fields dependent on the target UE protocol configuration.
% Show the minimum DCI message size per format for NDLRB = 50 (10 MHz symmetric link bandwidth), FDD duplexing, and PDCCH transmission.

enb = struct('NDLRB',50,'DuplexMode','FDD','CellRefP',1);
dciout = lteDCIInfo(enb)

%
% Default settings for the UE-specific channel structure, chs, are:

chs.ControlChannelType = 'PDCCH';
chs.SearchSpace = 'UESpecific';
chs.EnableCarrierIndication = 'Off';
chs.EnableMultipleCSIRequest = 'Off';
chs.EnableSRSRequest = 'Off';
chs.NTxAnts = 1;

%
% Enable carrier indication, and show the sizes per format when the DCI message is configured to include the UE-specific 3 bit carrier indicator field (CIF).

chs.EnableCarrierIndication = 'On';

dciout = lteDCIInfo(enb,chs)

% The sizes have not changed for formats 1C/3/3A, because the CIF does not apply to them. Also, because of the padding rules, the original lengths for some of the formats increased by less than 3 bits. These lengths are for formats mapped into the UE-specific search space, not formats 3/3A.
%
% Change the UE-specific parameter to map the CIF into the PDCCH common search space.

chs.SearchSpace = 'Common';
dciout = lteDCIInfo(enb,chs)

% When the DCI message is configured for PDCCH-common search space, the format 0/1A length returns to its original size.
% As specified in TS 36.212, with regard to search space, these points apply:
% Only formats 0/1A/1C can be mapped into either the PDCCH common or UE-specific search spaces.
% Formats 3/3A can be mapped into the common search space only.
% All other formats are mapped into UE-specific spaces only.
% There is no common search space for the EPDCCH.
% Copyright 2012 The MathWorks, Inc.