Technical data
LibDefineIWork
4
-30
LibDefineIWork
Purpose
Call this function from inside the block’s
BlockInstanceSetup
function to
define the specified
iwork
in the block.
Syntax
%<LibDefineIWork(block, name, width)>
Arguments
block
Reference to the block record.
name
String that you want to call the
iwork
.
width
Integer width of the
iwork
.
Description
This call should be made from inside the block’s
BlockInstanceSetup
function,
and adds the specified
iwork
to the block. The function creates and maintains
an internal record for the
iwork
definition. For example, a block may have
iwork
records for system enable.
%<LibDefineIWork(block, "SystemEnable", 1)>
%<LibDefineIWork(block, "IcNeedsLoading", 1)>
Internally this creates a block record
NumIWorkDefines 2
IWorkDefine {
Name "SystemEnable"
Width 1
}
IWorkDefine {
Name "IcNeedsLoading"
Width 1
}
SystemEnable IWorkDefine[0]
ICNeeedsLoading IWorkDefine[1]
Note that
SystemEnable
and
IcNeedsLoading
are references to
IWorkDefine[0]
and
IWorkDefine[1]
, respectively, and are added by the
system file, which executes the block’s
BlockInstanceSetup
function.