PNI's SENtral-K hub for Google's KitKat handles all the hardware connections to the MEMS sensors plus manages the virtual sensor functions in software and in dedicated state-machine logic.
A fraction of the size of a Cortex M0, the PNI's SENtral-K hub comes preprogramed to handle all of Google's KitKat 4.4 sensor.h functions.
Further Reading