function c = hdlcommblks_control
%

% Copyright 2009-2018 The MathWorks, Inc.

c = hdlnewcontrol(mfilename);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                       %
%COMMUNICATIONS TOOLBOX BINDINGS        %
%                                       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% Modulators & Demodulators
% commdigbbndpm3
% PSK Modulators
c.defaultFor( ...
  ['commdigbbndpm3/QPSK', newline, 'Modulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.pskModulator');
  
c.defaultFor( ...
  ['commdigbbndpm3/BPSK', newline, 'Modulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.pskModulator');

c.defaultFor( ...
  ['commdigbbndpm3/M-PSK', newline, 'Modulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.pskModulator');

% PSK Demodulators
c.defaultFor( ...
  ['commdigbbndpm3/QPSK', newline, 'Demodulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.pskDemodulator');

c.defaultFor( ...
  ['commdigbbndpm3/BPSK', newline, 'Demodulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.pskDemodulator');

c.defaultFor( ...
  ['commdigbbndpm3/M-PSK', newline, 'Demodulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.pskDemodulator');

% QAM Modulator
c.defaultFor( ...
  ['commdigbbndam3/Rectangular QAM', newline, 'Modulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.RectQAMModulator');

% QAM Demodulator
c.defaultFor( ...
  ['commdigbbndam3/Rectangular QAM', newline, 'Demodulator', newline, 'Baseband'], ...
  {}, 'hdlcommblks.RectQAMDemodulator');

% Convolutional Encoder and Decoder - commcnvcod2
% Convolutional Encoder 
c.defaultFor(...
    ['commcnvcod2/Convolutional', newline, 'Encoder'],{}, ...
    'hdlcommblks.ConvEncoder');

% Viterbi Decoder 
c.defaultFor(...
    'commcnvcod2/Viterbi Decoder',{}, ...
    'hdlcommblks.ViterbiDecoder');


% Interleavers and Deinterleavers - commcnvintrlv2
% Convolutional Interleaver
c.defaultFor( ...  
  'commcnvintrlv2/Convolutional Interleaver', {}, ...
  'hdlcommblks.ConvIntDeint');

% Convolutional Deinterleaver
c.defaultFor( ...  
  'commcnvintrlv2/Convolutional Deinterleaver', {}, ...
  'hdlcommblks.ConvIntDeint');

% General Multiplexed Interleaver
c.defaultFor( ...  
  'commcnvintrlv2/General Multiplexed Interleaver', {}, ...
  'hdlcommblks.GenMuxIntDeint');

% General Multiplexed Deinterleaver
c.defaultFor( ...  
  'commcnvintrlv2/General Multiplexed Deinterleaver', {}, ...
  'hdlcommblks.GenMuxIntDeint');


% Sources
% commseqgen2, commseqgen3
c.defaultFor( ...
  ['commseqgen2/PN Sequence' newline 'Generator'], {}, ...
  'hdlcommblks.PNGenerator'); 
c.defaultFor( ...
  ['commseqgen3/PN Sequence' newline 'Generator'], {}, ...
  'hdlcommblks.PNGenerator'); 

% Hardware friendly blocks 
% comm.HDLCRCGenerator
c.defaultFor( ...  
  'commcrc2/General CRC Generator HDL Optimized', {}, ...
  'hdlcommblks.HDLCRCGenerator');

% comm.HDLCRCGenerator System object
c.defaultFor( ...  
  'comm.HDLCRCGenerator', {}, ...
  'hdlcommblks.HDLCRCGenerator');

% comm.HDLCRCDetector
c.defaultFor( ...  
  ['commcrc2/General CRC' newline 'Syndrome' newline 'Detector' newline 'HDL Optimized'], {}, ...
  'hdlcommblks.HDLCRCDetector');

% comm.HDLCRCDetector System object
c.defaultFor( ...  
  'comm.HDLCRCDetector', {}, ...
  'hdlcommblks.HDLCRCDetector');

% comm.HDLRSEncoder
c.defaultFor( ...  
  'commblkcod2/Integer-Input RS Encoder HDL Optimized', {}, ...
  'hdlcommblks.RSEncoder');

% comm.HDLRSEncoder System object
c.defaultFor( ...  
  'comm.HDLRSEncoder', {}, ...
  'hdlcommblks.RSEncoder');

% comm.HDLRSDecoder
c.defaultFor( ...  
  'commblkcod2/Integer-Output RS Decoder HDL Optimized', {}, ...
  'hdlcommblks.RSDecoder');

% comm.HDLRSDecoder System object
c.defaultFor( ...  
  'comm.HDLRSDecoder', {}, ...
  'hdlcommblks.RSDecoder');

% Sinks
c.defaultFor( ...
  'commsink2/Error Rate Calculation', {}, ...
  'hdlcommblks.NoHDL');

c.defaultFor( ...
  'commsink2/Discrete-Time Signal Trajectory Scope', {}, ...
  'hdlcommblks.NoHDL');

c.defaultFor( ...
  'built-in/ConstellationDiagram', {}, ...
  'hdlcommblks.NoHDL');

c.defaultFor( ...
  'built-in/EyeDiagram', {}, ...
  'hdlcommblks.NoHDL');
