| Contents | Index |
addEntry(hTable, entry)
Handle to a TFL table previously returned by hTable = RTW.TflTable.
Handle to a function or operator entry that you have constructed after calling hEntry = RTW.TflCFunctionEntry or hEntry = RTW.TflCOperationEntry
The addEntry function adds a function or operator entry that you have constructed to the collection of table entries registered in a TFL table.
In the following example, the addEntry function is used to add an operator entry to a TFL table after the entry is constructed.
hLib = RTW.TflTable;
% Create an entry for addition of built-in uint8 data type
op_entry = RTW.TflCOperationEntry;
op_entry.setTflCOperationEntryParameters( ...
'Key', 'RTW_OP_ADD', ...
'Priority', 90, ...
'SaturationMode', 'RTW_SATURATE_ON_OVERFLOW', ...
'RoundingMode', 'RTW_ROUND_UNSPECIFIED', ...
'ImplementationName', 'u8_add_u8_u8', ...
'ImplementationHeaderFile', 'u8_add_u8_u8.h', ...
'ImplementationSourceFile', 'u8_add_u8_u8.c' );
arg = hLib.getTflArgFromString('y1','uint8');
arg.IOType = 'RTW_IO_OUTPUT';
op_entry.addConceptualArg( arg );
arg = hLib.getTflArgFromString('u1','uint8');
op_entry.addConceptualArg( arg );
arg = hLib.getTflArgFromString('u2','uint8');
op_entry.addConceptualArg( arg );
op_entry.copyConceptualArgsToImplementation();
addEntry(hLib, op_entry);
Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |