All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
_vexQuadEncoder_t Struct Reference

Holds information relating to an encoder. More...

#include <vexencoder.h>

Data Fields

volatile int32_t count
 current encoder count More...
 
int32_t offset
 current encoder offset (subtracted from count) More...
 
int16_t state
 flag iondicating encoder is installed More...
 
tVexDigitalPin pa
 Encoder digital pin a. More...
 
tVexDigitalPin pb
 Encoder digital pin b. More...
 
ioportid_t pa_port
 Encoder GPIO port a. More...
 
int16_t pa_pad
 Encoder GPIO pad a. More...
 
ioportid_t pb_port
 Encoder GPIO port b. More...
 
int16_t pb_pad
 Encoder GPIO pad b. More...
 

Detailed Description

Holds information relating to an encoder.

Note
pin refers to the digital pin 1 through 12, port refers to the STM32 port, GPIOA, GPIOB etc. pad refers to the bit on the digital port 0 through 15

Field Documentation

volatile int32_t count

current encoder count

int32_t offset

current encoder offset (subtracted from count)

int16_t state

flag iondicating encoder is installed

Encoder digital pin a.

Encoder digital pin b.

ioportid_t pa_port

Encoder GPIO port a.

int16_t pa_pad

Encoder GPIO pad a.

ioportid_t pb_port

Encoder GPIO port b.

int16_t pb_pad

Encoder GPIO pad b.


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