Bmi 160 calibration has enogh material on calibrating it via your eval board. But how to calibrate it with arduino on a self designed board?
The calibration method is always the same concept for what ever evaluation system or Arduino platform.
The API on Github of BMI160 also includes the inline calibration code.