Hello all,

lets say that I have 3 unsigned chars.

Code:
unsigned char bitContainer = 0;
unsigned char bitValues[2];
What I wanna do is this:
I want to copy the last 5 bits of the variable bitValue[0] and the first 3 bits of the bitValue[1] into bitContainer. The first 5 bits of bitContainer are the last 5 bits of the bitValues[0] and the last 3 bits of bitContainer are the first bits of bitValues[1].

Thanks and ,
Best Regards,
BoSCHoW