lpcware

to concatenate uint8_t variables

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by nasib on Thu Jan 10 11:39:43 MST 2013
Hi all!

I am using the lpcxpresso 11u14 and i'm trying to concatenet two uint8_t, in order to create an uint16_t.


I have these two variables in an array: (data[0] = uint8_t) (data[1] = uint8_t). Actually i want to convert "data" in an uint16_t.

Anyone knows how could i do it ?

thank you very much!

Outcomes