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.
Dependents: mDotEVBM2X MTDOT-EVBDemo-DRH MTDOT-BOX-EVB-Factory-Firmware-LIB-108 MTDOT-UDKDemo_Senet ... more
Fork of MMA845x by
MMA845x_DATA Class Reference
Using the Sparkfun SEN-10955. More...
#include <MMA845x.h>
Public Member Functions | |
| MMA845x_DATA (int16_t x=0, int16_t y=0, int16_t z=0) | |
| Create the MMA845x_DATA object initialized to the parameter (or 0 if none) | |
| MMA845x_DATA & | operator= (MMA845x_DATA const &rhs) |
| Overloaded '=' operator to allow shorthand coding, assigning objects to one another. | |
| MMA845x_DATA & | operator= (int16_t const val) |
| Overloaded '=' operator to allow shorthand coding, assigning objects to one another. | |
| bool | operator== (MMA845x_DATA const &rhs) const |
| Overloaded '==' operator to allow shorthand coding, test objects to one another. | |
Data Fields | |
| volatile int16_t | _x |
| volatile int16_t | _y |
| volatile int16_t | _z |
Detailed Description
Using the Sparkfun SEN-10955.
Example:
#include "mbed.h" #include "MMA845x.h" int main() { }
API abstraction for the MMA845x 3-axis accelerometer IC data
Definition at line 52 of file MMA845x.h.
Constructor & Destructor Documentation
| MMA845x_DATA | ( | int16_t | x = 0, |
| int16_t | y = 0, |
||
| int16_t | z = 0 |
||
| ) |
Create the MMA845x_DATA object initialized to the parameter (or 0 if none)
- Parameters:
-
x - the init value of _x y - the init value of _y x - the init value of _z
Member Function Documentation
| MMA845x_DATA& operator= | ( | MMA845x_DATA const & | rhs ) |
| MMA845x_DATA& operator= | ( | int16_t const | val ) |
| bool operator== | ( | MMA845x_DATA const & | rhs ) | const |
Field Documentation
Generated on Thu Jul 14 2022 17:24:22 by
1.7.2
