PAN1080 Peripheral API
Macros
Qdec polarity type

Qdec channel counter definitions. More...

Collaboration diagram for Qdec polarity type:

Macros

#define QDEC_CNT_IDX_X   (0)
 
#define QDEC_CNT_IDX_Y   (1)
 
#define QDEC_CNT_IDX_Z   (2)
 
#define QDEC_MAX_CNT_RESOLUTION   (3)
 
#define QDEC_CNT_RESOLUTION_1X   (0)
 
#define QDEC_CNT_RESOLUTION_2X   (1)
 
#define QDEC_CNT_RESOLUTION_4X   (2)
 

Detailed Description

Qdec channel counter definitions.

Macro Definition Documentation

◆ QDEC_CNT_IDX_X

#define QDEC_CNT_IDX_X   (0)

Channel x counter

◆ QDEC_CNT_IDX_Y

#define QDEC_CNT_IDX_Y   (1)

Channel y counter

◆ QDEC_CNT_IDX_Z

#define QDEC_CNT_IDX_Z   (2)

Channel z counter

◆ QDEC_CNT_RESOLUTION_1X

#define QDEC_CNT_RESOLUTION_1X   (0)

b'00->1x resolution

◆ QDEC_CNT_RESOLUTION_2X

#define QDEC_CNT_RESOLUTION_2X   (1)

b'01->2x resolution

◆ QDEC_CNT_RESOLUTION_4X

#define QDEC_CNT_RESOLUTION_4X   (2)

b'02->4x resolution

◆ QDEC_MAX_CNT_RESOLUTION

#define QDEC_MAX_CNT_RESOLUTION   (3)

Max counter resolution