Hello all, I'm working with a serial protocol where I get an array of bytes. In the array there is are different data types serialized. Is there a way of type casting the array to extract the data directly like perhaps: (UINT16)*(&array[2]) ? I want to treat array[2] and array[3] as a 16bit data type but that code didn't do the job. I worked around it by using memcpy to copy those 2 memory locations into a 16bit data type but I bet one of you geniuses knows what's the proper way to typecast the array location directly.
Thanks for the help.
David P