uint16_t data = wiringPiI2CReadReg16(adc, 0x00); low = (data & 0xFF00) >> 8; high = (data & 0x00FF) << 8; value = (high | low)>>4; return value; I know this stables the value some how but how and why

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter8: Working With Advanced Functions
Section: Chapter Questions
Problem 4.4CP
icon
Related questions
Question

uint16_t data = wiringPiI2CReadReg16(adc, 0x00);


low = (data & 0xFF00) >> 8;

high = (data & 0x00FF) << 8;

value = (high | low)>>4;

   return value;

 

I know this stables the value some how but how and why

Please give explanation 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage