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.
 
 
 

15 lines
335 B

#pragma once
#include "main.h"
#include <stdbool.h>
typedef struct
{
TIM_HandleTypeDef *tim_handler;
uint32_t tim_channel;
} encoder_t;
void encoder_all_start(void);
void encoder_all_stop(void);
bool encoder_clear_counter(TIM_HandleTypeDef *tim_handler);
void encoder_all_clear_counter(void);
void encoder_read_printf(void);