Dear Eric,
for a reference driver to the MMA68xx, please refer to this community thread. There is a link to TWR_SENSOR_AUTO_FW package.
Please also refer to this community thread and also to this one. It might be useful for you.
With Best Regards,
Jozef
Dear Eric,
I wonder if the MM6827 can set the range and sensitivity? I didn't see the specific register.
[A] Unfortunately no. The MMA6827 accelerometer and other MMA68xx accelerometers range and sensitivity cannot be changed. If you need accelerometer with different range, you can chose other one from the same family. Please refer to the Table in the page 1, and to section 3.4 in the MMA68xx datasheet.
With Best Regards,
Jozef