Is this a question or a statement?
I see that you want to write a library (Step counter in LIS2DUX12 chip) but with this topic it sounds now (no offence intended) like you have no idea how to even get the basics of whatever you want to achieve.
Please describe your project. Please explain what MLC is and explain where your problems are (if any). If any hardware is involved, list it (including links to datasheets) and draw a schematic/wiring diagram. If you already have a program and have problems with it, post the code (don't forget to use code tags as described in How to get the best out of this forum).