#include <asf.h>
#include "d_quadEnc.h"
#include "conf_d_quadEnc.h"
Go to the source code of this file.
◆ BUF_SIZE
◆ QDEC_USE_INDEX
◆ quadEncInit()
void quadEncInit |
( |
void |
| ) |
|
Initialize quadrature encoder driver.
Definition at line 150 of file d_quadEnc.c.
◆ quadEncReadPositionAll()
void quadEncReadPositionAll |
( |
int * |
pos0, |
|
|
bool * |
dir0, |
|
|
int * |
pos1, |
|
|
bool * |
dir1 |
|
) |
| |
Reads the current position of the encoders.
Definition at line 181 of file d_quadEnc.c.
◆ quadEncReadSpeedAll()
void quadEncReadSpeedAll |
( |
uint32_t * |
speed0, |
|
|
uint32_t * |
speed1 |
|
) |
| |
◆ quadEncSetModePosition()
static void quadEncSetModePosition |
( |
Tc *const |
timercounter, |
|
|
uint32_t |
ID_timercounter |
|
) |
| |
|
static |
◆ quadEncSetModeSpeed()
static void quadEncSetModeSpeed |
( |
Tc *const |
timercounter, |
|
|
int |
timerchannel, |
|
|
int |
timerirq, |
|
|
uint32_t |
ID_timercounter |
|
) |
| |
|
static |
◆ TCCAP0_SPD_Handler()
void TCCAP0_SPD_Handler |
( |
void |
| ) |
|
◆ TCCAP1_SPD_Handler()
void TCCAP1_SPD_Handler |
( |
void |
| ) |
|
◆ test_quad_encoders()
void test_quad_encoders |
( |
void |
| ) |
|
◆ speed_capture
uint32_t speed_capture[2] = {0, 0} |
|
static |
◆ speed_capture_timeMs
uint32_t speed_capture_timeMs = 0 |
|
static |