NI Home > Community > NI Discussion Forums

Driver Development Kit (DDK)

Reply
Member
Alex_S.
Posts: 13
0 Kudos

Where can I find tDMAChannel.h

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

Member
John80
Posts: 24
0 Kudos

Re: Where can I find tDMAChannel.h

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:

 

https://lumen.ni.com/nicif/us/evalmhddk/content.xhtml

Member
Alex_S.
Posts: 13
0 Kudos

Re: Where can I find tDMAChannel.h

Hellow, thanks for answer.

 

One more question:

 

u32 getCalibrationAreaOffset (const u8 *eepromMemory)

{

    return (eepromMemory[kCalibrationAreaOffset] << 8) | eepromMemory[kCalibrationAreaOffset+1];

}

 

In function getCalibrationAreaOffset construction (eepromMemory[kCalibrationAreaOffset] << 8) always equal 0, as since (eepromMemory[   ] have size u8. Is there sense here?

 

Thanks

Member
John80
Posts: 24
0 Kudos

Re: Where can I find tDMAChannel.h

What compiler are you using?

 

Can you post your definition of u8 here?

 

 

Member
Alex_S.
Posts: 13
0 Kudos

Re: Where can I find tDMAChannel.h

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] << 8) | 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