Function tc_enable_qdec_interrupt()

Enable TC QDEC interrupts.

void tc_enable_qdec_interrupt(
		Tc * p_tc,
		uint32_t ul_sources)

Note: This function is not available on SAM4L or SAMG devices.
Table 1. Parameters
Data direction Parameter name Description

[out]

p_tc

Module hardware register base address pointer

[in]

ul_sources

A bitmask of QDEC interrupts to be enabled

Where the input parameter ul_sources can be one or more of the following:

Parameter Value

Description

TC_QIER_IDX

Enable the rising edge detected on IDX input interrupt

TC_QIER_DIRCHG

Enable the change in rotation direction detected interrupt

TC_QIER_QERR

Enable the quadrature error detected on PHA/PHB interrupt