DMA question. What is the differences between MLNO vs MLOFFNO vs MLOFFYES

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DMA question. What is the differences between MLNO vs MLOFFNO vs MLOFFYES

ソリューションへジャンプ
1,164件の閲覧回数
nijo
Contributor II

Hey,

 

Could anyone help me with the difference between then these fields:

 

DMA_TCD0_NBYTES_MLNO
DMA_TCD0_NBYTES_MLOFFNO
DMA_TCD0_NBYTES_MLOFFYES

 

Any help greatly appreciated.

0 件の賞賛
返信
1 解決策
905件の閲覧回数
konrada
Contributor IV

They refer to the same memory address, so it doesn't matter which one you use. Depending on the DMA settings, the TCDx_NBYTES field has a different bit layout, and the different names are one way of coping with that. (My guess is that Freescale uses a generator to generate header files and documentation from a chip description, and the generator doesn't support a register with varying bit layouts).

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
906件の閲覧回数
konrada
Contributor IV

They refer to the same memory address, so it doesn't matter which one you use. Depending on the DMA settings, the TCDx_NBYTES field has a different bit layout, and the different names are one way of coping with that. (My guess is that Freescale uses a generator to generate header files and documentation from a chip description, and the generator doesn't support a register with varying bit layouts).

0 件の賞賛
返信
905件の閲覧回数
nijo
Contributor II
Thank you very much for you answer.
Just for future reference this is what I found after you "tip", this is taken from MK60N512VMD100.h

 

union {
uint32_t NBYTES_MLNO;
uint32_t NBYTES_MLOFFNO;
uint32_t NBYTES_MLOFFYES;
};

 

(That is, they do indead reference the exact same memory address).

0 件の賞賛
返信