update bit masking functions for new i2c api; correct comment bit indices