function varargout = sf_rf24mesh_read_cb(varargin)
% sf_rf24mesh_read_cb
    
% Copyright 2015 - 2016 The MathWorks, Inc.
    
    if nargout == 0
        feval(varargin{:});
    else
        [varargout{1:nargout}] = feval(varargin{:});
    end
end

function init(blk) %#ok<DEFNU>
    dstr = sprintf([ ...
        'port_label(''output'', 1, ''f()'');\n', ...
        'port_label(''output'', 2, ''Type'');\n', ...
        'port_label(''output'', 3, ''Data'');\n', ...
        'port_label(''output'', 4, ''DataSize'');\n', ...
        ]);
    if strcmp('on', get_param(blk, 'pHeader'))
        dstr = sprintf('%sport_label(''output'', 5, ''SrcNode'');\n', dstr);
    end
    dstr = sprintf([...
        '%scolor(''blue'');\n', ...
        'text(.1, .9, ''RF24'');\n'], ...
        dstr);

    set_param(blk, 'MaskDisplay', dstr);
end