Lines Matching full:2048
432 * 12 bits signed raw max 64 to dps: 64 / 2048 in inv_icm42600_gyro_read_offset()
435 * (offset * 64 * Pi * 1000000000) / (2048 * 180) in inv_icm42600_gyro_read_offset()
438 /* for rounding, add + or - divisor (2048 * 180) divided by 2 */ in inv_icm42600_gyro_read_offset()
440 val64 += 2048 * 180 / 2; in inv_icm42600_gyro_read_offset()
442 val64 -= 2048 * 180 / 2; in inv_icm42600_gyro_read_offset()
443 bias = div_s64(val64, 2048 * 180); in inv_icm42600_gyro_read_offset()
489 * dps to raw 12 bits signed, max 64: 2048 / 64 in inv_icm42600_gyro_write_offset()
491 * val * 180 * 2048 / (Pi * 1000000000 * 64) in inv_icm42600_gyro_write_offset()
493 val64 = val64 * 180LL * 2048LL; in inv_icm42600_gyro_write_offset()
502 if (offset < -2048) in inv_icm42600_gyro_write_offset()
503 offset = -2048; in inv_icm42600_gyro_write_offset()