Sha256: c98e5db6f8c38afcf58e6dd268dabbee3f7f7752c4ae5853d79caac5a0894b67

Contents?: true

Size: 1.34 KB

Versions: 26

Compression:

Stored size: 1.34 KB

Contents

#ifndef FREQUENCYTIMER2_IS_IN
#define FREQUENCYTIMER2_IS_IN

/*
  FrequencyTimer2.h - A frequency generator and interrupt generator library
  Author: Jim Studt, jim@federated.com
  Copyright (c) 2007 David A. Mellis.  All right reserved.

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/


#include <wiring.h>

class FrequencyTimer2
{
  private:
    static uint8_t enabled;
  public:
    static void (*onOverflow)(); // not really public, but I can't work out the 'friend' for the SIGNAL
    
  public:
    static void setPeriod(unsigned long);
    static unsigned long getPeriod();
    static void setOnOverflow( void (*)() );
    static void enable();
    static void disable();
};

#endif

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
neo_rad-0.4.0 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
atduskgreg-rad-0.2.5 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
atduskgreg-rad-0.3.0.1 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
atduskgreg-rad-0.3.1 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.2.3 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.2.4 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.2.5 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.2.6 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.2.7 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.1.1 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.1 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.2 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.3 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.4 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.5 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.6 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.7 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.8 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.3.9 lib/libraries/FrequencyTimer2/FrequencyTimer2.h
madrona-rad-0.4.0 lib/libraries/FrequencyTimer2/FrequencyTimer2.h