- Thu Dec 09, 2010 1:39 pm
#115246
Greetings,
I am using an Atmel to read the data off of a BMP085 pressure sensor, I downloaded the example code off of the SF site and am having trouble finding into on how a few of lines of code work.
in the first line ac4 is an unsigned short and x3 is a long and b4 is an unsigned long, can someone please explain how to use these "partial declarations" within calculations or point me to some documentation (tricky to google things in parenthesis).. ?
Much appreciated!
I am using an Atmel to read the data off of a BMP085 pressure sensor, I downloaded the example code off of the SF site and am having trouble finding into on how a few of lines of code work.
Code: Select all
I am familiar with declaring variables, ie unsigned long varX, but not this.b4 = (ac4 * (unsigned long) (x3 + 32768)) >> 15;
b7 = ((unsigned long) up - b3) * (50000 >> OSS);
in the first line ac4 is an unsigned short and x3 is a long and b4 is an unsigned long, can someone please explain how to use these "partial declarations" within calculations or point me to some documentation (tricky to google things in parenthesis).. ?
Much appreciated!