Enable TC QDEC interrupts.
void tc_enable_qdec_interrupt( Tc * p_tc, uint32_t ul_sources)
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 |
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 |