Lightning sensor library It is inherited from https://developer.mbed.org/users/casper/code/AS3935/
Dependents: BLE_Lightning_sensor
AS3935_ext.h
00001 /* 00002 AS3935_ext.h - AS3935 Franklin Lightning Sensor™ IC by AMS library 00003 Copyright (c) 2015 T.Naka. All rights reserved. 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 3 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 */ 00019 00020 #ifndef _AS3935_EXT_HPP 00021 #define _AS3935_EXT_HPP 00022 00023 #include "mbed.h" 00024 #include "AS3935.hpp" 00025 00026 class AS3935_ext : public AS3935 { 00027 private: 00028 PinName irq; 00029 00030 public: 00031 AS3935_ext(PinName sda, PinName scl, int adresse, PinName irq); 00032 00033 int MeasureLCOFreq(); 00034 void setIRQ(PinName irqpin); 00035 void reset(); 00036 00037 00038 }; 00039 00040 /* !_AS3935_EXT_HPP */ 00041 #endif
Generated on Tue Jul 12 2022 15:22:13 by 1.7.2