📄 halt.m
字号:
function pc = halt(cc,timeout)
%HALT Immediately terminates execution of DSP processor.
% HALT(CC,TIMEOUT) asynchronously stops execution of the DSP processor
% referenced by the CC object. This method waits for the DSP
% processor to terminate execution in the processor before returning.
% The CC.RUN method can be used to resume execution after a HALT. By
% reading the 'PC' register, it is possible to check the address
% where the code was stopped by this method.
%
% The TIMEOUT parameter defines how long to wait (in seconds) for
% the execution to terminate. If this period is exceeded,
% the routine will return immediately with a timeout error. In
% general the action (halt) will still occur, but the timeout value
% gave insufficient time to verify the completion of the action.
%
% HALT(CC) Same as above, except the timeout value defaults to the
% timeout property specified by the CC object. Use CC.GET to examine
% this default timeout value.
%
% See also RUN, ISRUNNING, REGREAD.
% Copyright 2001-2002 The MathWorks, Inc.
% $Revision: 1.13 $ $Date: 2002/06/12 15:30:41 $
error(nargchk(1,2,nargin));
if(nargin >= 2),
dtimeout = double(timeout);
else
dtimeout = double(get(cc,'timeout'));
end
ccsmexswitchyard([13,cc.boardnum,cc.procnum,dtimeout,cc.eventwaitms]);
% [EOF] halt.m
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -