ADXL345 triple axis, digital accelerometer library.
Fork of ADXL345 by
Revision 1:adc25a85eb76, committed 2015-08-03
- Comitter:
- ailtonljr
- Date:
- Mon Aug 03 17:01:22 2015 +0000
- Parent:
- 0:bd8f0f20f433
- Commit message:
- Montando o c?digo de acesso a um aceler?metro.
Changed in this revision
| ADXL345.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/ADXL345.h Mon Sep 06 13:53:03 2010 +0000
+++ b/ADXL345.h Mon Aug 03 17:01:22 2015 +0000
@@ -492,6 +492,15 @@
*/
int getFifoStatus(void);
+ /**
+ * Read several consecutive bytes on the device.
+ *
+ * @param startAddress The address of the first register to read from.
+ * @param buffer Pointer to a buffer to store data read from the device.
+ * @param size The number of bytes to read.
+ */
+ void multiByteRead(int startAddress, char* buffer, int size);
+
private:
SPI spi_;
@@ -514,14 +523,7 @@
*/
void oneByteWrite(int address, char data);
- /**
- * Read several consecutive bytes on the device.
- *
- * @param startAddress The address of the first register to read from.
- * @param buffer Pointer to a buffer to store data read from the device.
- * @param size The number of bytes to read.
- */
- void multiByteRead(int startAddress, char* buffer, int size);
+
/**
* Write several consecutive bytes on the device.
