10 bit rotary magnetic encoder (AS5040)