7.1.4 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.
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 |