Detailed Description

#include <stdint.h>
#include "periph/gpio.h"
#include "irq.h"
#include "periph/qdec.h"
#include "ztimer.h"
#include "ztimer/periodic.h"
#include "kernel_defines.h"
+ Include dependency graph for inc_encoder.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  inc_encoder_params_t
 Device initialization parameters. More...
 
struct  inc_encoder_t
 Device descriptor for the driver. More...
 

Functions

int inc_encoder_init (inc_encoder_t *dev, const inc_encoder_params_t *params)
 Initialize the given device. More...
 
int inc_encoder_read_rpm (inc_encoder_t *dev, int32_t *rpm)
 Read the current RPM of the motor. More...
 
int inc_encoder_read_reset_ceti_revs (inc_encoder_t *dev, int32_t *pulse_counter)
 Read and reset number of revolutions since the last readout in hundredths. More...