General guidelines:
First think to check on what Logic it is working..
second is to check the comparability between controller and encoder whether we can interface the bus directly or not..
If above two are ok then you can GPIOs as a interface if there is no dedicated interface for encoder..