Need help connecting the tle5012b encoder to the vesc

Hello everyone, I bought a tle5012b encoder, I can’t connect it, can you tell me how to connect it correctly?
O1CN01JdKVDW2Br83I1HJ5F_!!12778391.jpg_430x430

I depends on encoder tipe. And on used vesc. some Vesc have passive filters on hall ports and this will cause troubles.

I understand you can use this as a replacement for hall sensors. But where do you mount it ?

Mount it on the end of the motor shaft