Dear all,
I have 4 numbers (A[0-3]) stored 10 bits data. the first 8 bits data stored in 1 byte data arrays (B[0-3]). the last 2bits of each A[i] stored sequentially in 1 byte number C (the first two bits of C is the last 2 bits of A[0]). Could you please help me to restore A array from B and C data in C-language?
short A[4]; // unsigned
unsigned char B[4];
unsigned char C;
how to set first 6bits of A[0] to zero? and then set the next 8bits of A[0] following to B[0]; and then set the last 2bits of A[0] to the first 2bits of C
Thank you very much,
kik