Home
last modified time | relevance | path

Searched refs:raw_coef (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.7.0/drivers/sensor/infineon/dps310/
Ddps310.c250 static void dps310_calib_coeff_creation(const uint8_t raw_coef[18], in dps310_calib_coeff_creation()
254 comp->c0 = (((uint16_t)raw_coef[0]) << 4) + (raw_coef[1] >> 4); in dps310_calib_coeff_creation()
260 comp->c1 = (((uint16_t)(raw_coef[1] & 0x0F)) << 8) + raw_coef[2]; in dps310_calib_coeff_creation()
267 comp->c00 = (((uint32_t)raw_coef[3]) << 12) + (((uint16_t)raw_coef[4]) << 4) + in dps310_calib_coeff_creation()
268 (raw_coef[5] >> 4); in dps310_calib_coeff_creation()
274 comp->c10 = (((uint32_t)(raw_coef[5] & 0x0F)) << 16) + in dps310_calib_coeff_creation()
275 (((uint16_t)raw_coef[6]) << 8) + raw_coef[7]; in dps310_calib_coeff_creation()
281 comp->c01 = (int16_t) sys_get_be16(&raw_coef[8]); in dps310_calib_coeff_creation()
282 comp->c11 = (int16_t) sys_get_be16(&raw_coef[10]); in dps310_calib_coeff_creation()
283 comp->c20 = (int16_t) sys_get_be16(&raw_coef[12]); in dps310_calib_coeff_creation()
[all …]