📄 checkerforoffset.m
字号:
function sv = checkerforoffset(mm,usersSV)
%CHECKERFOROFFSET - private function to verify operations on property OFFSET
% Copyright 2002 The MathWorks, Inc.
% $Revision: 1.2 $ $Date: 2002/04/03 19:03:02 $
tempI = round(usersSV);
if tempI<0
error('Bitfield offset cannot be negative.');
end
if strcmp(mm.procsubfamily(1:2),'C6'), % C6x
if tempI>32
error('The bitfield offset cannot be greater than an integer size.')
end
elseif strcmp(mm.procsubfamily,'C54x'), % C54x
if tempI>16
error('The bitfield offset cannot be greater than an integer size.')
end
end
sv = tempI;
% [EOF] checkerforoffset.m
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -