quadrature qdec fonction for Due

Hello,

I looking for a complet example of the qdec module for AB+Z for my Due board.
Step by step (wath's define first, wath's initiate ect...)

I have read and try wath's 0n the Post of dreschel
--Using the Hardware Quadrature Encoder Channel on the DUE--
That's working, But the solution dont use the qdec fonction.

I need to use some fonction buildin the Qdec module.

Let me explained a bit. There is fonction like, Direction state, Direction change interup state, Quadrature Error Detection QERR flag on TC_QISR register.

THANKS IN ADVANCE.