MSP432E4 DriverLib API Guide  1.11.00.03
Macros | Functions
qei.h File Reference
#include <stdint.h>
#include <stdbool.h>
Include dependency graph for qei.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define QEI_CONFIG_CAPTURE_A   0x00000000
 
#define QEI_CONFIG_CAPTURE_A_B   0x00000008
 
#define QEI_CONFIG_NO_RESET   0x00000000
 
#define QEI_CONFIG_RESET_IDX   0x00000010
 
#define QEI_CONFIG_QUADRATURE   0x00000000
 
#define QEI_CONFIG_CLOCK_DIR   0x00000004
 
#define QEI_CONFIG_NO_SWAP   0x00000000
 
#define QEI_CONFIG_SWAP   0x00000002
 
#define QEI_FILTCNT_2   0x00000000
 
#define QEI_FILTCNT_3   0x00010000
 
#define QEI_FILTCNT_4   0x00020000
 
#define QEI_FILTCNT_5   0x00030000
 
#define QEI_FILTCNT_6   0x00040000
 
#define QEI_FILTCNT_7   0x00050000
 
#define QEI_FILTCNT_8   0x00060000
 
#define QEI_FILTCNT_9   0x00070000
 
#define QEI_FILTCNT_10   0x00080000
 
#define QEI_FILTCNT_11   0x00090000
 
#define QEI_FILTCNT_12   0x000A0000
 
#define QEI_FILTCNT_13   0x000B0000
 
#define QEI_FILTCNT_14   0x000C0000
 
#define QEI_FILTCNT_15   0x000D0000
 
#define QEI_FILTCNT_16   0x000E0000
 
#define QEI_FILTCNT_17   0x000F0000
 
#define QEI_VELDIV_1   0x00000000
 
#define QEI_VELDIV_2   0x00000040
 
#define QEI_VELDIV_4   0x00000080
 
#define QEI_VELDIV_8   0x000000C0
 
#define QEI_VELDIV_16   0x00000100
 
#define QEI_VELDIV_32   0x00000140
 
#define QEI_VELDIV_64   0x00000180
 
#define QEI_VELDIV_128   0x000001C0
 
#define QEI_INTERROR   0x00000008
 
#define QEI_INTDIR   0x00000004
 
#define QEI_INTTIMER   0x00000002
 
#define QEI_INTINDEX   0x00000001
 

Functions

void QEIEnable (uint32_t ui32Base)
 
void QEIDisable (uint32_t ui32Base)
 
void QEIConfigure (uint32_t ui32Base, uint32_t ui32Config, uint32_t ui32MaxPosition)
 
uint32_t QEIPositionGet (uint32_t ui32Base)
 
void QEIPositionSet (uint32_t ui32Base, uint32_t ui32Position)
 
int32_t QEIDirectionGet (uint32_t ui32Base)
 
bool QEIErrorGet (uint32_t ui32Base)
 
void QEIFilterEnable (uint32_t ui32Base)
 
void QEIFilterDisable (uint32_t ui32Base)
 
void QEIFilterConfigure (uint32_t ui32Base, uint32_t ui32FiltCnt)
 
void QEIVelocityEnable (uint32_t ui32Base)
 
void QEIVelocityDisable (uint32_t ui32Base)
 
void QEIVelocityConfigure (uint32_t ui32Base, uint32_t ui32PreDiv, uint32_t ui32Period)
 
uint32_t QEIVelocityGet (uint32_t ui32Base)
 
void QEIIntRegister (uint32_t ui32Base, void(*pfnHandler)(void))
 
void QEIIntUnregister (uint32_t ui32Base)
 
void QEIIntEnable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
void QEIIntDisable (uint32_t ui32Base, uint32_t ui32IntFlags)
 
uint32_t QEIIntStatus (uint32_t ui32Base, bool bMasked)
 
void QEIIntClear (uint32_t ui32Base, uint32_t ui32IntFlags)
 

Macro Definition Documentation

§ QEI_CONFIG_CAPTURE_A

#define QEI_CONFIG_CAPTURE_A   0x00000000

§ QEI_CONFIG_CAPTURE_A_B

#define QEI_CONFIG_CAPTURE_A_B   0x00000008

§ QEI_CONFIG_NO_RESET

#define QEI_CONFIG_NO_RESET   0x00000000

§ QEI_CONFIG_RESET_IDX

#define QEI_CONFIG_RESET_IDX   0x00000010

§ QEI_CONFIG_QUADRATURE

#define QEI_CONFIG_QUADRATURE   0x00000000

§ QEI_CONFIG_CLOCK_DIR

#define QEI_CONFIG_CLOCK_DIR   0x00000004

§ QEI_CONFIG_NO_SWAP

#define QEI_CONFIG_NO_SWAP   0x00000000

§ QEI_CONFIG_SWAP

#define QEI_CONFIG_SWAP   0x00000002

§ QEI_FILTCNT_2

#define QEI_FILTCNT_2   0x00000000

§ QEI_FILTCNT_3

#define QEI_FILTCNT_3   0x00010000

§ QEI_FILTCNT_4

#define QEI_FILTCNT_4   0x00020000

§ QEI_FILTCNT_5

#define QEI_FILTCNT_5   0x00030000

§ QEI_FILTCNT_6

#define QEI_FILTCNT_6   0x00040000

§ QEI_FILTCNT_7

#define QEI_FILTCNT_7   0x00050000

§ QEI_FILTCNT_8

#define QEI_FILTCNT_8   0x00060000

§ QEI_FILTCNT_9

#define QEI_FILTCNT_9   0x00070000

§ QEI_FILTCNT_10

#define QEI_FILTCNT_10   0x00080000

§ QEI_FILTCNT_11

#define QEI_FILTCNT_11   0x00090000

§ QEI_FILTCNT_12

#define QEI_FILTCNT_12   0x000A0000

§ QEI_FILTCNT_13

#define QEI_FILTCNT_13   0x000B0000

§ QEI_FILTCNT_14

#define QEI_FILTCNT_14   0x000C0000

§ QEI_FILTCNT_15

#define QEI_FILTCNT_15   0x000D0000

§ QEI_FILTCNT_16

#define QEI_FILTCNT_16   0x000E0000

§ QEI_FILTCNT_17

#define QEI_FILTCNT_17   0x000F0000

§ QEI_VELDIV_1

#define QEI_VELDIV_1   0x00000000

§ QEI_VELDIV_2

#define QEI_VELDIV_2   0x00000040

§ QEI_VELDIV_4

#define QEI_VELDIV_4   0x00000080

§ QEI_VELDIV_8

#define QEI_VELDIV_8   0x000000C0

§ QEI_VELDIV_16

#define QEI_VELDIV_16   0x00000100

§ QEI_VELDIV_32

#define QEI_VELDIV_32   0x00000140

§ QEI_VELDIV_64

#define QEI_VELDIV_64   0x00000180

§ QEI_VELDIV_128

#define QEI_VELDIV_128   0x000001C0

§ QEI_INTERROR

#define QEI_INTERROR   0x00000008

§ QEI_INTDIR

#define QEI_INTDIR   0x00000004

§ QEI_INTTIMER

#define QEI_INTTIMER   0x00000002

§ QEI_INTINDEX

#define QEI_INTINDEX   0x00000001
© Copyright 1995-2019, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale