Sep 1, 2007 #1 T Terminator Electricity Member level 5 Joined Feb 2, 2006 Messages 91 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,973 Hi,, what does this line mean ? level = (i > ((uint8_t) (RC5RESAMPLE/2)));
Sep 1, 2007 #2 E Encrypted Advanced Member level 4 Joined May 28, 2001 Messages 115 Helped 17 Reputation 36 Reaction score 5 Trophy points 1,298 Activity points 705 If i is greater than RC5RESAMPLE divided by 2 then level = 1, if not level = 0.
Sep 2, 2007 #3 T Terminator Electricity Member level 5 Joined Feb 2, 2006 Messages 91 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,286 Activity points 1,973 Thanks ,, but i have another question plz how would i define a 10 bits integer or char for example unsigned char is 8 bits ,, if i want a 10 bits variable ,, what should i do ?
Thanks ,, but i have another question plz how would i define a 10 bits integer or char for example unsigned char is 8 bits ,, if i want a 10 bits variable ,, what should i do ?
Sep 2, 2007 #4 B btbass Advanced Member level 5 Joined Jul 20, 2001 Messages 1,896 Helped 438 Reputation 880 Reaction score 288 Trophy points 1,363 Location Oberon Activity points 12,887 Just define an int, 16 bits, then my 10bit = int & 0x3ff