Loading...
Searching...
No Matches

Driver for the pulse counter. More...

Detailed Description

Driver for the pulse counter.

Author
Hyung-Sin Kim hs.ki.nosp@m.m@cs.nosp@m..berk.nosp@m.eley.nosp@m..edu

Definition in file pulse_counter.h.

#include <stdint.h>
#include <stdatomic.h>
#include "periph/gpio.h"
+ Include dependency graph for pulse_counter.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  pulse_counter_params_t
 Parameters needed for device initialization. More...
 
struct  pulse_counter_t
 Device descriptor for a pulse counter device. More...
 

Functions

int pulse_counter_init (pulse_counter_t *dev, const pulse_counter_params_t *params)
 Initialize a pulse counter device.
 
int16_t pulse_counter_read_with_reset (pulse_counter_t *dev)
 Read and reset pulse counter value.
 
int16_t pulse_counter_read_without_reset (pulse_counter_t *dev)
 Read pulse counter value.
 
void pulse_counter_reset (pulse_counter_t *dev)
 Reset pulse counter value.