I am trying to move a 4 byte char buffer into a 32bit integer. No conversion--just move it.
I have the stretch of code below:
==========================================
char buff[4];
buff[0] = 0x0B; //load buffer with number 184551986
buff[1] = 0x00;
buff[2] = 0x0A;
buff[3] = 0x32;
uint32_t adcout;

adcout = (uint32_t)*buff;
===========================================
looking at acdout in the debugger I would expect to see
0B000A32
but i only see
0000000B
It clearly is only moving the 1st byte. I thought the compiler would take the buff length into account (and the 32 bit int length).

What am I missing here?
Thanks
Fritz