function M= output_test_module(NAME)
% M = output_test_module(NAME)
% Copies input pin data to the output pin.
%
% Arguments:
% NAME - name of the module
%

% AudioWeaverModule [This tag makes it appear under awe_help]

M=awe_module('OutputTest', 'Copies input wire to output wire');
if (nargin == 0)
 return;
end

M.name=NAME;
M.defaultName='OutputTest';

% Add input and output pins with no data or size restrictions
PT=new_pin_type([], [], [], '*32', []);

add_pin(M, 'input', 'in', 'check', PT);
add_pin(M, 'input', 'micin', 'mycheck2',PT);
add_pin(M, 'output', 'out', 'Output signal', PT);

add_variable(M, 'gain', 'float', 1.0, 'parameter', 'Linear gain');
M.gain.range=[-10 10];
M.gain.units='linear';

% ----------------------------------------------------------------------
% Code generation details
% ----------------------------------------------------------------------
awe_addcodemarker(M, 'processFunction', 'Insert:\InnerOutputTest_Process.c');
awe_addcodemarker(M, 'postConstructorFunction', 'Insert:\InnerTestInOutChannels_postConstructor.c');
awe_addcodemarker(M, 'discussion', {'Copies the input to the output. '});

% ----------------------------------------------------------------------
% Module browser information
% ----------------------------------------------------------------------
M.moduleBrowser.path = 'Third Party';
M.moduleBrowser.image = '../images/OutputTest.bmp';
M.moduleBrowser.searchTags = 'pass thru through copy';
return;
