incoming data is 12 bit.
ps = (char *)(data).
how ps can pass 12 bit data?.
let's say Acq takes only 8 bit ps.
Acq(ps);
jeff
char* in C and C++ has at least three meanings. It can be a pointer
to a single char (often 8 bits, but check macro CHAR_BIT to be sure),
a pointer to an array of chars whose size is stored separately or
known a priori, or it can be a pointer to a zero-terminated array
(i.e. all chars up to the first (char)0 0.
In your case, you know ps points to 12 bits. My guess would be that
either the bits are packed, in which case you have 2 bytes *(ps) and
*(ps+1), or unpacked when you have 12 bytes *(ps) till *(ps+11).
i.e. your case is the second of three, "array, size known a priori"
Regards,