a
CQuadratureEncoder_TIM4 Class Reference
It's a singleton class for receiving and decoding the Quadrature signal by using the timer TIM4. More...
#include <quadratureencoder.hpp>
Inherits encoders::CQuadratureEncoder_TIMX.
Public Member Functions | |
int16_t | getCount () |
Get the position of encoder. | |
void | reset () |
Reset the value of the counter to zero value. | |
Static Public Member Functions | |
static CQuadratureEncoder_TIM4 * | Instance () |
Constructor function. |
Detailed Description
It's a singleton class for receiving and decoding the Quadrature signal by using the timer TIM4.
It can get the direction of the rotation.
Definition at line 32 of file quadratureencoder.hpp.
Member Function Documentation
int16_t getCount | ( | ) | [virtual] |
Get the position of encoder.
Implements CQuadratureEncoder_TIMX.
Definition at line 95 of file quadratureencoder.cpp.
CQuadratureEncoder_TIM4 * Instance | ( | ) | [static] |
Constructor function.
It verifies the existance of the singleton object and creates it.
- Returns:
- The address of the singleton object
Definition at line 45 of file quadratureencoder.cpp.
void reset | ( | ) | [virtual] |
Reset the value of the counter to zero value.
Implements CQuadratureEncoder_TIMX.
Definition at line 104 of file quadratureencoder.cpp.
Generated on Tue Jul 12 2022 22:40:51 by 1.7.2