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 MMA845x by
Revision 11:8dc4f77b2f53, committed 2018-07-02
- Comitter:
- amateusz
- Date:
- Mon Jul 02 22:52:24 2018 +0000
- Parent:
- 10:89dd748f9211
- Child:
- 12:92294b5ca1c1
- Commit message:
- added interrupt bitmasks
Changed in this revision
| MMA845x.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/MMA845x.h Mon Jul 02 22:21:01 2018 +0000
+++ b/MMA845x.h Mon Jul 02 22:52:24 2018 +0000
@@ -219,6 +219,30 @@
};
/**
+ * @enum INTERRUPT_CFG_AND_ENABLE
+ * @brief used to enable interrupts for corresponding functions
+ */
+ enum INTERRUPT_CFG_AND_ENABLE {
+ INT_DRDY = 0x00,
+ // 0x20 missing,
+ INT_FF_MT = 0x04,
+ INT_PULSE = 0x08,
+ INT_LNDPRT = 0x10,
+ INT_TRANS = 0x20,
+ INT_FIFO = 0x40,
+ INT_ASLP = 0x80
+ }
+
+ /**
+ * @enum INTERRUPT_PIN
+ * @brief chooses interrupt pin used to signal interrupt condition
+ */
+ enum INTERRUPT_PIN {
+ INT1 = 1,
+ INT2 = 0
+ }
+
+ /**
* @enum REGISTER
* @brief The device register map
*/
