function p = pulse_detector_init()
p.TxLen = 5000;
p.TsFrame = 1; % 1 pulse per second
p.PulseLen = 64;
p.WindowLen = 11;
p.threshold = 0.03;
p.TsSample = p.TsFrame/p.TxLen;
p.SimTime = (p.TxLen + p.WindowLen + 30)*p.TsSample*5;
p.PulseGenRandomSeed = 0; % -1 means rng('shuffle')

% Simulate in fixed-point or floating-point
p.FixedPointSim=1;
if p.FixedPointSim % fixed-point
    p.DT_input = fixdt(1,16,14);
    p.DT_coeff = fixdt(1,18);
    p.DT_filter = fixdt(1,18,15);
    p.DT_power = fixdt(1,18,11);
else
    p.DT_input = 'double';
    p.DT_coeff = 'double';
    p.DT_filter = 'double';
    p.DT_power = 'double';
end

end