Combining multiple bytes

Joined
Apr 2, 2010
Messages
1
Reaction score
0
I have four multiple bytes that I would like to combine into one 32 bit string that I can output a bit at a time.

I know how to combine the bytes to get a value like

value = Byte1<<24 + Byte2<<16 +; etc.

However I would like to be able to use the shift_right and output_bit functions which need an address rather than a value.

I am fairly new to C programming and would greatly appreciate any help. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top