|
-
June 1st, 2012, 12:05 AM
#1
Reading bits using bitwise operators from 32 bit integer
Hi,
I have a 32 bit integer variable with some value (eg: 4545) in it, now I want to read first 8 bits into uint8_t and second 8 bits into another uint8_t and so on till the last 8 bits.
I am thinking of using bitwise operators, can anyone give some examples how to do this?
Thanks for your help!
-Madhu.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|