C51 memcpy from SFR's

Good morning

Is there a way to memcpy from SFR's in the C51?

I have tried to memcpy((char*)&buffer, (char*)&CAN0IF2DA1L, 8); but it doesn't work

Other things i tried

memcpy((char*)&buffer,  CAN0IF2DA1L, 8);                                     //error C214: illegal pointer conversion

memcpy((char*)&buffer, (char*)&CAN0IF2DA1L, 8);                         //error C189: '&' on bit/sfr illegal

Any ideas?


Parents Reply Children
No data
More questions in this forum