another simple C winavr question plz

Status
Not open for further replies.
If i is greater than RC5RESAMPLE divided by 2 then level = 1, if not level = 0.
 

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 ?
 

Just define an int, 16 bits, then
my 10bit = int & 0x3ff
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…