On the assumption there is no such thing as a silly question, only silly answers here is a question the answer to which is probably very obvious but I am missing it.
in Example file "PeriodicAd.cpp" if find this:
Code: Select all
volatile edma_tcdstruct &tmrTcd = sim2.edma.tcd[DMA_CH_DTER_0 + timerNum];
What eludes me is the exact declaration syntax: if you want to refer to a particular memory location indirectly aren't you supposed to use a pointer (e.g.: edma_tctdstruct *tmrTcd) and then use "->" instead of "." to refer to the various elements within the structure ?
I am using it and it works really well, I just can't find anything that explains the "&tmrTcd" syntax on the left hand side of the line of code.
If anyone would explain it or point to where the explanation can be found I would very much appreciate it.