Hover!( Microchip MGC3130 ) library. Now, it is development version. http://www.hoverlabs.co/#hover https://www.switch-science.com/catalog/2124/

Dependents:   MjHover_Hello

Committer:
matsujirushi
Date:
Thu Apr 02 13:02:52 2015 +0000
Revision:
2:46cf70365584
Parent:
1:8e9c00c59101
Child:
3:b03009537d66
1st release.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
matsujirushi 0:051e1e753af5 1 #ifndef MJ_HOVER_H
matsujirushi 0:051e1e753af5 2 #define MJ_HOVER_H
matsujirushi 0:051e1e753af5 3
matsujirushi 0:051e1e753af5 4 #include "mbed.h"
matsujirushi 0:051e1e753af5 5
matsujirushi 2:46cf70365584 6 using namespace std;
matsujirushi 2:46cf70365584 7
matsujirushi 0:051e1e753af5 8 namespace matsujirushi {
matsujirushi 0:051e1e753af5 9
matsujirushi 0:051e1e753af5 10 class MjHover
matsujirushi 0:051e1e753af5 11 {
matsujirushi 0:051e1e753af5 12 public:
matsujirushi 2:46cf70365584 13 MjHover(I2C* i2c, uint8_t address, DigitalInOut* ts, DigitalInOut* reset_n);
matsujirushi 1:8e9c00c59101 14 void begin();
matsujirushi 1:8e9c00c59101 15 void setRelease();
matsujirushi 1:8e9c00c59101 16 bool getStatus();
matsujirushi 1:8e9c00c59101 17 uint8_t getEvent();
matsujirushi 1:8e9c00c59101 18 static const char* getEventString(uint8_t eventByte);
matsujirushi 0:051e1e753af5 19
matsujirushi 0:051e1e753af5 20 private:
matsujirushi 0:051e1e753af5 21 I2C *i2c;
matsujirushi 0:051e1e753af5 22 uint8_t address;
matsujirushi 1:8e9c00c59101 23 DigitalInOut* ts; // I/O Transfer Status
matsujirushi 2:46cf70365584 24 DigitalInOut* reset_n; // O Master Clear#
matsujirushi 0:051e1e753af5 25
matsujirushi 0:051e1e753af5 26 };
matsujirushi 0:051e1e753af5 27
matsujirushi 0:051e1e753af5 28 } // namespace matsujirushi
matsujirushi 0:051e1e753af5 29
matsujirushi 0:051e1e753af5 30 #endif
matsujirushi 2:46cf70365584 31