Eirbot1A-2020
encoder.hpp
1
#ifndef __ENCODER_H_
2
#define __ENCODER_H_
3
4
#include "mbed.h"
5
class
Encoder
6
{
7
public
:
8
Encoder
(TIM_TypeDef* TIM);
9
Encoder
();
10
void
reset();
11
short
get();
12
short
diff();
13
short
lastValue;
14
private
:
15
TIM_TypeDef* TIM;
16
};
17
18
void
TIM3_EncoderInit();
19
20
void
TIM4_EncoderInit();
21
22
#endif // __ENCODER_H_
Encoder
Definition:
encoder.hpp:6
Encoder::Encoder
Encoder(TIM_TypeDef *TIM)
Definition:
encoder.cpp:8
code
nucleo
lib
Asserv
encoder.hpp
Généré par
1.8.20