Driver for the pulse counter. More...
Driver for the pulse counter.
Definition in file pulse_counter.h.
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. More... | |
int16_t | pulse_counter_read_with_reset (pulse_counter_t *dev) |
Read and reset pulse counter value. More... | |
int16_t | pulse_counter_read_without_reset (pulse_counter_t *dev) |
Read pulse counter value. More... | |
void | pulse_counter_reset (pulse_counter_t *dev) |
Reset pulse counter value. More... | |