TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Rotary main working structure. More...

#include <tm_stm32_rotary_encoder.h>

Data Fields

int32_t Absolute
 
int32_t Diff
 
TM_RE_Rotate_t Rotation
 
TM_RE_Mode_t Mode
 
uint8_t LastA
 
int32_t RE_Count
 
GPIO_TypeDef * GPIO_A
 
GPIO_TypeDef * GPIO_B
 
uint16_t GPIO_PIN_A
 
uint16_t GPIO_PIN_B
 

Detailed Description

Rotary main working structure.

Field Documentation

int32_t Absolute

Absolute rotation from beginning, for public use

int32_t Diff

Rotary difference from last check, for public use

GPIO_TypeDef* GPIO_A

Pointer to GPIOx for Rotary encode A pin. Meant for private use

GPIO_TypeDef* GPIO_B

Pointer to GPIOx for Rotary encode B pin. Meant for private use

uint16_t GPIO_PIN_A

GPIO pin for rotary encoder A pin. This pin is also set for interrupt

uint16_t GPIO_PIN_B

GPIO pin for rotary encoder B pin.

uint8_t LastA

Last status of A pin when checking. Meant for private use

Rotary encoder mode selected

int32_t RE_Count

Temporary variable to store data between rotation and user check

TM_RE_Rotate_t Rotation

Increment, Decrement or nothing, for public use