PropWare  3.0.0.229
C++ objects and CMake build system for Parallax Propeller
Functions
count.c File Reference

count function source, see simpletools.h for documentation. More...

#include "simpletools.h"
+ Include dependency graph for count.c:

Go to the source code of this file.

Functions

long count (int pin, long duration)
 Count number of low to high transitions an external input applies to an I/O pin over a certain period of time. More...
 

Detailed Description

count function source, see simpletools.h for documentation.

Author
Andy Lindsay
Version
0.85

@detail Please submit bug reports, suggestions, and improvements to this code to edito.nosp@m.r@pa.nosp@m.ralla.nosp@m.x.co.nosp@m.m.

Definition in file count.c.

Function Documentation

◆ count()

long count ( int  pin,
long  duration 
)

Count number of low to high transitions an external input applies to an I/O pin over a certain period of time.

Parameters
pinI/O pin number
durationAmount of time the measurement counts transitions
Returns
The number of low to high transitions

Definition at line 19 of file count.c.

+ Here is the caller graph for this function: