Zap'Em Blast'Em Robots
robots that play laser tag!
Loading...
Searching...
No Matches
encoder_t Struct Reference

Structure to hold encoder task configuration and state. More...

#include <encoder_driver.h>

Data Fields

uint32_t zero
int32_t ar
int32_t ticks
int32_t last_ticks
int32_t range
TIM_HandleTypeDef * htim

Detailed Description

Structure to hold encoder task configuration and state.

This struct includes timer values, encoder tick accumulation, and wrap-around handling through the auto-reload value.

Field Documentation

◆ ar

int32_t ar

Auto-reload or max timer value

◆ htim

TIM_HandleTypeDef* htim

Timer handle

◆ last_ticks

int32_t last_ticks

Last read relative count

◆ range

int32_t range

Logical range of encoder

◆ ticks

int32_t ticks

Accumulated ticks

◆ zero

uint32_t zero

Timer value when "zeroed"


The documentation for this struct was generated from the following file: