Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
diff -r bd8f0f20f433 -r adc25a85eb76 ADXL345.h --- 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.