syenidogan
Member level 1
if ((buffer[1] == 16)&(((unsigned int) buffer[6] + 9)!=counter))
(buffer[1]==16) gives one bit result 1 or 0
(((unsigned int) buffer[6] + 9)!=counter) gives one bit result 1 or 0
then and (&) these two values and see if it is 1 or zero ? is this correct ?
if not ,can some one explain me detailed.
buffer is unsigned char
and counter is unsigned int
(buffer[1]==16) gives one bit result 1 or 0
(((unsigned int) buffer[6] + 9)!=counter) gives one bit result 1 or 0
then and (&) these two values and see if it is 1 or zero ? is this correct ?
if not ,can some one explain me detailed.
buffer is unsigned char
and counter is unsigned int
Last edited: