- implement mask/shift config in teensy code