SetDataIndex
Set Data Index
Description
The request sets the specified index to associate a dataset NvM block (with or without ROM blocks) with its corresponding RAM block. The DataIndex needs to have a valid value before read, write, erase or invalidate requests are initiated. If the dataset block has a set of ROM defaults, the function is used to select the appropriate ROM set (prior to NvM_ReadBlock()).
| Request Type | 
|---|
| Synchronous | 
Port Description
The following table describes the ports for this block.
| Port | Type | Description | 
|---|---|---|
| DataIndex | Input | Index position of a block of NvM block type Dataset. | 
| Return | Output | Standard return E_OK or E_NOT_OK for the function call. | 
Mask Description
The following table describes the parameters for this mask.
| Parameter | Description | 
|---|---|
| NvM Block Name | The block name defined in the m-file with the NVM class. | 
| Cast Function Return to Void | True: Function will be cast as a 'void' function and the return value is ignored. | 
| Data Store for DataIndex | Data store name for use in model testing for the input argument in the function call. | 
| Data Store for Return | Data store name for use in model testing for the result of the function call. | 
NvM Block Compatibility
The following table describes which NvM block type is compatible with this function.
| NvM Block Type | Compatible | 
|---|---|
| Native | No | 
| Redundant | No | 
| Data Set | Yes |