halt.m

来自「一个MATLAB的应用程序」· M 代码 · 共 23 行

M
23
字号
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 2002 The MathWorks, Inc.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?