📄 reset.m
字号:
function dummy = reset(cc,timeout)
%RESET Software reset of the target dsp.
% RESET(CC,TIMEOUT) stops execution of the target DSP processor referenced
% by the CC object and then asynchronously performs a reset. This routine
% waits for the DSP processor to halt before returning. The TIMEOUT parameter
% defines how long to wait for the reset to complete. Use CC.RUN to resume
% execution from the reset location.
%
% RESET(CC) Same as above, except the timeout value defaults to the timeout
% property specified for the parent CCSDSP object. Use GET to examine the
% default value supplied by the object.
%
% See also HALT, RUN
% Copyright 2001-2002 The MathWorks, Inc.
% $Revision: 1.8 $ $Date: 2002/06/11 20:56:45 $
error(nargchk(1,2,nargin));
% Parse timeout
if( nargin >= 2) & (~isempty(timeout)),
if ~isnumeric(timeout) | length(timeout) ~= 1,
error('TIMEOUT parameter must be a single numeric value.');
end
dtimeout = double(timeout);
else
dtimeout = double(get(cc,'timeout'));
end
if( dtimeout < 0)
error(['Negative TIMEOUT value "' num2str(dtimeout) '" not permitted.']);
end
ccsmexswitchyard([24,cc.boardnum,cc.procnum,dtimeout,cc.eventwaitms]);
% [EOF] reset.m
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -