Macros | Functions | Variables
d_quadEnc.c File Reference
#include <asf.h>
#include "d_quadEnc.h"
#include "conf_d_quadEnc.h"
Include dependency graph for d_quadEnc.c:

Go to the source code of this file.

Macros

#define BUF_SIZE   100
 
#define QDEC_USE_INDEX   0
 

Functions

void quadEncInit (void)
 Initialize quadrature encoder driver. More...
 
void quadEncReadPositionAll (int *pos0, bool *dir0, int *pos1, bool *dir1)
 Reads the current position of the encoders. More...
 
void quadEncReadSpeedAll (uint32_t *speed0, uint32_t *speed1)
 
static void quadEncSetModePosition (Tc *const timercounter, uint32_t ID_timercounter)
 
static void quadEncSetModeSpeed (Tc *const timercounter, int timerchannel, int timerirq, uint32_t ID_timercounter)
 
void TCCAP0_SPD_Handler (void)
 
void TCCAP1_SPD_Handler (void)
 
void test_quad_encoders (void)
 

Variables

static uint32_t speed_capture [2] = {0, 0}
 
static uint32_t speed_capture_timeMs = 0
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   100

◆ QDEC_USE_INDEX

#define QDEC_USE_INDEX   0

Definition at line 19 of file d_quadEnc.c.

Function Documentation

◆ 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 
)

Definition at line 198 of file d_quadEnc.c.

◆ quadEncSetModePosition()

static void quadEncSetModePosition ( Tc *const  timercounter,
uint32_t  ID_timercounter 
)
static

Definition at line 21 of file d_quadEnc.c.

◆ quadEncSetModeSpeed()

static void quadEncSetModeSpeed ( Tc *const  timercounter,
int  timerchannel,
int  timerirq,
uint32_t  ID_timercounter 
)
static

Definition at line 120 of file d_quadEnc.c.

◆ TCCAP0_SPD_Handler()

void TCCAP0_SPD_Handler ( void  )

Definition at line 60 of file d_quadEnc.c.

◆ TCCAP1_SPD_Handler()

void TCCAP1_SPD_Handler ( void  )

Definition at line 90 of file d_quadEnc.c.

◆ test_quad_encoders()

void test_quad_encoders ( void  )

Definition at line 217 of file d_quadEnc.c.

Variable Documentation

◆ speed_capture

uint32_t speed_capture[2] = {0, 0}
static

Definition at line 57 of file d_quadEnc.c.

◆ speed_capture_timeMs

uint32_t speed_capture_timeMs = 0
static

Definition at line 58 of file d_quadEnc.c.



inertial_sense_ros
Author(s):
autogenerated on Sat Sep 19 2020 03:19:05