Lines Matching refs:val1
212 (float)(val->val1 + (val->val2 / 1000000.0)) * 0xFFFF / SCD4X_MAX_TEMP; in scd4x_set_temperature_offset()
226 uint16_t altitude = val->val1; in scd4x_set_sensor_altitude()
240 uint16_t ambient_pressure = val->val1; in scd4x_set_ambient_pressure()
255 uint16_t automatic_calib_enable = val->val1; in scd4x_set_automatic_calib_enable()
271 uint16_t initial_period = val->val1; in scd4x_set_self_calib_initial_period()
286 uint16_t standard_period = val->val1; in scd4x_set_self_calib_standard_period()
318 val->val1 = (int32_t)(temp / 0xFFFF); in scd4x_get_temperature_offset()
341 val->val1 = sys_get_be16(rx_buf); in scd4x_get_sensor_altitude()
364 val->val1 = sys_get_be16(rx_buf); in scd4x_get_ambient_pressure()
387 val->val1 = sys_get_be16(rx_buf); in scd4x_get_automatic_calib_enable()
410 val->val1 = sys_get_be16(rx_buf); in scd4x_get_self_calib_initial_period()
433 val->val1 = sys_get_be16(rx_buf); in scd4x_get_self_calib_standard_period()
639 val->val1 = (int32_t)(tmp_val / 0xFFFF) + SCD4X_MIN_TEMP; in scd4x_channel_get()
645 val->val1 = (int32_t)(tmp_val / 0xFFFF); in scd4x_channel_get()
649 val->val1 = data->co2_sample; in scd4x_channel_get()
677 if (val->val1 < 0 || val->val2 < 0) { in scd4x_attr_set()
683 if (val->val1 > SCD4X_TEMPERATURE_OFFSET_IDX_MAX) { in scd4x_attr_set()
693 if (val->val1 > SCD4X_SENSOR_ALTITUDE_IDX_MAX) { in scd4x_attr_set()
703 if (val->val1 > SCD4X_AMBIENT_PRESSURE_IDX_MAX || val->val1 < 700) { in scd4x_attr_set()
714 if (val->val1 > SCD4X_BOOL_IDX_MAX) { in scd4x_attr_set()
724 if (val->val1 % 4) { in scd4x_attr_set()
738 if (val->val1 % 4) { in scd4x_attr_set()