Searched refs:t_h_buf (Results 1 – 1 of 1) sorted by relevance
75 u8 t_h_buf[HTU31_TEMP_HUM_LEN] = {}; in htu31_data_fetch_command() local86 .len = sizeof(t_h_buf), in htu31_data_fetch_command()87 .buf = t_h_buf, in htu31_data_fetch_command()113 crc = crc8(htu31_crc8_table, &t_h_buf[0], 2, HTU31_CRC8_INIT_VAL); in htu31_data_fetch_command()114 if (crc != t_h_buf[2]) { in htu31_data_fetch_command()119 crc = crc8(htu31_crc8_table, &t_h_buf[3], 2, HTU31_CRC8_INIT_VAL); in htu31_data_fetch_command()120 if (crc != t_h_buf[5]) { in htu31_data_fetch_command()125 data->temperature = htu31_temp_to_millicelsius(be16_to_cpup((__be16 *)&t_h_buf[0])); in htu31_data_fetch_command()126 data->humidity = htu31_relative_humidity(be16_to_cpup((__be16 *)&t_h_buf[3])); in htu31_data_fetch_command()
Completed in 40 milliseconds