PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FreqMeasure.h 360B

3 yıl önce
12345678910111213141516171819
  1. #ifndef FreqMeasure_h
  2. #define FreqMeasure_h
  3. #include <Arduino.h>
  4. class FreqMeasureClass {
  5. public:
  6. static void begin(void);
  7. static uint8_t available(void);
  8. static uint32_t read(void);
  9. static float countToFrequency(uint32_t count);
  10. static float countToNanoseconds(uint32_t count);
  11. static void end(void);
  12. };
  13. extern FreqMeasureClass FreqMeasure;
  14. #endif