GX5290, GX5295, File
Sets the specified data source clock cycles delay.
DioRealTimeCompareSetupDataDelay (nHandle, nDataType, dwCycles, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Board or File Board handle. |
nDataType |
SHORT |
Data type:0. DIO_RTC_EXPECTED_DATA: sets the number of clock cycles that the expected memory data will be delayed by from the strobe.1. DIO_RTC_MASKED_DATA: sets the number of clock cycles that the mask memory data will be delayed by from the clock. |
dwCycles |
DWORD |
Data clock cycles delay value. Value can be between 0-15 |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function sets the number of clocks cycles that the expected and masked memory data will be delayed by. Since each data in the comparison process has its own delay the function can be used to align the three different data sources, input data, masked data and expected data to be correctly compared.
The board has to be in Real Time Compare operating mode prior calling this function. See the DioDomainSetupOperatingMode function for more details.
Note: the Real Time Compare functionality is supported by GX529x boards with firmware versions 0x8A00 and above.
The following example sets the expected memory data source clock cycles delay to 2:
DioRealTimeCompareSetupDataDelay (nHandle, DIO_RTC_EXPECTED_DATA, 2, &nStatus);
DioRealTimeCompareSetupConditionValue, DioRealTimeCompareSetupDataDelay, DioRealTimeCompareSetupInputDataClockEdge, DioRealTimeCompareSetupResultsDataType, DioRealTimeCompareSetupStopCondition, DioRealTimeCompareWriteExpectedMemory, DioRealTimeCompareWriteMaskMemory, DioRealTimeCompareReadResults