I want to split a received binary data into two binary data.
Take the following received binary data for instance:
uint32_t data = 0xFFFF0001;
In binary format it is: 11111111111111110000000000000001
If we need to split this above binary into two new binary data how could it be done?
As an example from the 0xFFFF0001, how can we obtain the first 17-bit as as data1 = 11111111111111110 and then the remaining 15-bit as data2 = 000000000000001 ?