Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1.  
  2. struct OUTERDATA
  3. {
  4.     unsigned int ID : 1;            // x            (0; 255)
  5.     unsigned int Illumination : 15; // x            (0 ; 32'767)    lux
  6.     unsigned int Humidity : 8;      // x / 10       (0.0 ; 100.0)   %
  7.     unsigned int Temperature : 8;   // x / 10 - 40  (-40.0 ; 62.4)  C
  8.     unsigned int Pressure : 8;      // x + 300      (300 ; 1100)    hPa
  9.     unsigned int WindDirection : 8; // x / 100      (0.00 ; 6.28)   rad
  10.     unsigned int WindSpeed : 8;     // x / 10       (0.0 ; 256)     m/s
  11.     unsigned int BatteryLevel : 8;  // x / 10       (0.0 ; 100.0)   %
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement