Added #defines for encoder registers