12-15-2011 03:37 AM
Hellow
Where can I find following files:
tDMAChannel.h, tDMAChannel.cpp
tDMABuffer.h, tDMABuffer.cpp
tLinearDMABuffer.h, tLinearDMABuffer.cpp
tMITE.h, tMITE.ipp, tMITE.cpp.
Thanks
12-22-2011 03:40 PM
Download dma.zip located here:
http://ftp.ni.com/evaluation/labview/ekit/other/downloader/dma.zip
In it you will find the following sources:
dma.mak
tDMABuffer.cpp
tDMABuffer.h
tDMAChannel.cpp
tDMAChannel.h
tLinearDMABuffer.cpp
tLinearDMABuffer.h
tMITE.cpp
tMITE.h
tMITE.ipp
The rest of the examples are listed here:
12-23-2011 03:06 AM
Hellow, thanks for answer.
One more question:
u32 getCalibrationAreaOffset (const u8 *eepromMemory)
{
return (eepromMemory[kCalibrationAreaOffset] << 😎 | eepromMemory[kCalibrationAreaOffset+1];
}
In function getCalibrationAreaOffset construction (eepromMemory[kCalibrationAreaOffset] << 😎 always equal 0, as since (eepromMemory[ ] have size u8. Is there sense here?
Thanks
12-23-2011 06:59 AM
What compiler are you using?
Can you post your definition of u8 here?
12-26-2011 01:29 AM
Hellow.
I use GNU Compiler Collection (4.3.3) under QNX Momentics IDE.
Function u32 getCalibrationAreaOffset (const u8 *eepromMemory) looks in my code as:
uint32_t getCalibrationAreaOffset (char* eepromMemory)
{
return (eepromMemory[kCalibrationAreaOffset] << 😎 | eepromMemory[kCalibrationAreaOffset+1];
}
Objects of type char (and u8, I think) have size 1 byte. But then operation <Object of type char> << 8 always must be equal to 0. Am I wrong? Why?
What real value (offset) will getCalibrationAreaOffset return for PXI-6255?
Thanks