Lightning sensor library It is inherited from https://developer.mbed.org/users/casper/code/AS3935/
Dependents: BLE_Lightning_sensor
AS3935_ext.h@3:b6df973f6686, 2015-09-05 (annotated)
- Committer:
- takafuminaka
- Date:
- Sat Sep 05 13:17:57 2015 +0000
- Revision:
- 3:b6df973f6686
- Parent:
- 0:a1be9313a67a
Library extension of AS3935 by valentin spanu;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
takafuminaka | 0:a1be9313a67a | 1 | /* |
takafuminaka | 0:a1be9313a67a | 2 | AS3935_ext.h - AS3935 Franklin Lightning Sensor™ IC by AMS library |
takafuminaka | 0:a1be9313a67a | 3 | Copyright (c) 2015 T.Naka. All rights reserved. |
takafuminaka | 0:a1be9313a67a | 4 | |
takafuminaka | 0:a1be9313a67a | 5 | This library is free software; you can redistribute it and/or |
takafuminaka | 0:a1be9313a67a | 6 | modify it under the terms of the GNU Lesser General Public |
takafuminaka | 0:a1be9313a67a | 7 | License as published by the Free Software Foundation; either |
takafuminaka | 0:a1be9313a67a | 8 | version 3 of the License, or (at your option) any later version. |
takafuminaka | 0:a1be9313a67a | 9 | |
takafuminaka | 0:a1be9313a67a | 10 | This library is distributed in the hope that it will be useful, |
takafuminaka | 0:a1be9313a67a | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
takafuminaka | 0:a1be9313a67a | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
takafuminaka | 0:a1be9313a67a | 13 | Lesser General Public License for more details. |
takafuminaka | 0:a1be9313a67a | 14 | |
takafuminaka | 0:a1be9313a67a | 15 | You should have received a copy of the GNU Lesser General Public |
takafuminaka | 0:a1be9313a67a | 16 | License along with this library; if not, write to the Free Software |
takafuminaka | 0:a1be9313a67a | 17 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
takafuminaka | 0:a1be9313a67a | 18 | */ |
takafuminaka | 0:a1be9313a67a | 19 | |
takafuminaka | 0:a1be9313a67a | 20 | #ifndef _AS3935_EXT_HPP |
takafuminaka | 0:a1be9313a67a | 21 | #define _AS3935_EXT_HPP |
takafuminaka | 0:a1be9313a67a | 22 | |
takafuminaka | 0:a1be9313a67a | 23 | #include "mbed.h" |
takafuminaka | 0:a1be9313a67a | 24 | #include "AS3935.hpp" |
takafuminaka | 0:a1be9313a67a | 25 | |
takafuminaka | 0:a1be9313a67a | 26 | class AS3935_ext : public AS3935 { |
takafuminaka | 0:a1be9313a67a | 27 | private: |
takafuminaka | 0:a1be9313a67a | 28 | PinName irq; |
takafuminaka | 0:a1be9313a67a | 29 | |
takafuminaka | 0:a1be9313a67a | 30 | public: |
takafuminaka | 0:a1be9313a67a | 31 | AS3935_ext(PinName sda, PinName scl, int adresse, PinName irq); |
takafuminaka | 0:a1be9313a67a | 32 | |
takafuminaka | 0:a1be9313a67a | 33 | int MeasureLCOFreq(); |
takafuminaka | 0:a1be9313a67a | 34 | void setIRQ(PinName irqpin); |
takafuminaka | 0:a1be9313a67a | 35 | void reset(); |
takafuminaka | 0:a1be9313a67a | 36 | |
takafuminaka | 0:a1be9313a67a | 37 | |
takafuminaka | 0:a1be9313a67a | 38 | }; |
takafuminaka | 0:a1be9313a67a | 39 | |
takafuminaka | 0:a1be9313a67a | 40 | /* !_AS3935_EXT_HPP */ |
takafuminaka | 0:a1be9313a67a | 41 | #endif |