Technical data
LibDefinePWork
4
-31
LibDefinePWork
Purpose
Call this function from inside the block’s
BlockInstanceSetup
function to
define the specified
pwork
in the block.
Syntax
%<LibDefinePWork(block, name, width)>
Arguments
block
Reference to the block record.
name
String that you want to call the
pwork
.
width
Integer width of the
pwork
.
Description
This call should be made from inside the block’s
BlockInstanceSetup
function,
and adds the specified
pwork
to the block. The function creates and maintains
an internal record for the
pwork
definition. For example, a block may have a
pwork
record for data logging.
%<LibDefinePWork(block, "LoggedData", 3)>
Internally this creates a block record
NumPWorkDefines 1
PWorkDefine {
Name "LoggedData"
Width 3
}
LoggedDat PWorkDefine[0]
Note that
LoggedData
is a reference to
PWorkDefine[0]
, which is added by the
system file which executes the block’s
BlockInstanceSetup
function.