I have the following data
uint8_t d1=0x01; uint8_t d2=0x02;
I want to combine them as uint16_t as
uint16_t
uint16_t wd =
The simplest way is:
256U*d2+d1