This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to access low and high bytes of a 16-bit data.

Other Parts Discussed in Thread: CC2538

Hello,

I am using the Ambient light sensor(ALS) example for the SmartRF06 wich cc2538. I want to send the  data on a  radio packet.

However the ALS data is 16 bit while the packet padding (as in PER test example) is 88 8-bit data bytes. How do I allocate High byte of ALS data to packet.padding[10] for example and low byte to packet.padding[11].

By the way is there a manual for all C instructions that can be used on ARM mcus?

Thanks,

Vikram.