SCA3000 triple axis digital interface accelerometer
Diff: SCA3000.h
- Revision:
- 1:f5f2e79304fb
- Parent:
- 0:fe041345c169
diff -r fe041345c169 -r f5f2e79304fb SCA3000.h --- a/SCA3000.h Sun May 29 14:13:20 2011 +0000 +++ b/SCA3000.h Thu Jun 09 14:29:16 2011 +0000 @@ -85,13 +85,24 @@ /** * Get the register contents acceleration value for the - * given axis. + * given axis, using the nominal sensitivity values + * found in the datasheet. * * @param axis The axis to get acceleration values for. * * @return The acceleration on the specified axis in mg. */ float getAcceleration(int axis); + + /** + * Get the register contents acceleration value for the + * given axis, in counts. + * + * @param axis The axis to get the counts values for. + * + * @return The acceleration on the specified axis in counts. + */ + int getCounts(int axis); private: @@ -100,16 +111,6 @@ DigitalOut nR_; /** - * Converts the contents of acceleration registers (MSB << 8 | LSB) - * to mg. - * - * @param counts The contents of acceleration registers. - * - * @return The acceleration in mg. - */ - float countsToMg(int counts); - - /** * Read one byte from a register on the device. * * @param address Address of the register to read.