Adding functions for magnetometer QDC generation.