function strBuffer = RadioTextPlus3A(~, ~, iw3, ~, strBuffer)
%RADIOTEXTPLUS3A RadioTextPlus-specific processing of 3A group types

% Copyright 2016-2021 The MathWorks, Inc.

    % process the message bits of RT+ contained in 3A types
    CBflag      = iw3(4);
    SCBbits     = iw3(5:8);
    templateNo  = bit2int(iw3(9:end)', length(iw3)-8);

    % Template
    if CBflag
      strID = 'TemplateExists';
    else
      strID = 'NoTemplateExists';
    end
    templatePreamble = getString(message('comm_demos:RadioTextPlus:TemplatePreamble'));
    str = getString(message(['comm_demos:RadioTextPlus:' strID]));
    strBuffer = sprintf('%s: %s\n', [strBuffer templatePreamble], str);

    % Server control bits:
    SCBpreamble = getString(message('comm_demos:RadioTextPlus:SCBpreamble'));
    strBuffer = sprintf('%s: %s\n', [strBuffer SCBpreamble],  num2str(SCBbits));

    if CBflag
      templateNoPreamble = getString(message('comm_demos:RadioTextPlus:TemplateNoPreamble'));
      strBuffer.StrBuffer = sprintf('%s: %s\n', [strBuffer templateNoPreamble],  templateNo);
    end
end
