This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

get address of buffer to pointer !!

Other Parts Discussed in Thread: MSP430F6779

Hi,

I am using msp430f6779 mcu and I have code line like that:

unsigned char  *inBuf_p ;

inBuf_p = channelPtr->Ports_p[portId].InBuf;

I am expecting to pass  address of  " channelPtr->Ports_p[portId].InBuf"  this statement to "inBuf_p". I mean I want  "InBuf" buffer to point   " channelPtr->Ports_p[portId].InBuf" this statement address. But It points not address, it points value of " channelPtr->Ports_p[portId].InBuf". Am I doing wrong something ?

Best Regards

**Attention** This is a public forum