/dports/comms/rtl-433/rtl_433-21.12/src/devices/ |
H A D | fineoffset_wh1080.c | 131 int temp_raw; in fineoffset_wh1080_callback() local 217 temp_raw = ((br[2] & 0x03) << 8) | br[3]; // only 10 bits, discard top bits in fineoffset_wh1080_callback() 218 temperature = (temp_raw - 400) * 0.1f; in fineoffset_wh1080_callback() 221 temp_raw = ((br[2] & 0x0F) << 8) | br[3]; in fineoffset_wh1080_callback() 222 if (temp_raw & 0x800) { in fineoffset_wh1080_callback() 223 temp_raw &= 0x7FF; // remove sign bit in fineoffset_wh1080_callback() 224 temp_raw = -temp_raw; // reverse magnitude in fineoffset_wh1080_callback() 226 temperature = (temp_raw) * 0.1f; in fineoffset_wh1080_callback()
|
H A D | acurite.c | 208 tempc = (temp_raw >> 4) * 0.1f; in acurite_th_decode() 384 tempf = (temp_raw - 1480) * 0.1f; in acurite_6045_decode() 571 tempf = (temp_raw - 400) * 0.1; in acurite_atlas_decode() 733 tempc = temp_raw * 0.1 - 100; in acurite_txr_decode() 775 tempf = (temp_raw - 1480) * 0.1f; in acurite_txr_decode() 859 tempf = (temp_raw - 400) * 0.1f; in acurite_txr_decode() 1132 temp_raw = temp_raw >> 4; in acurite_606_decode() 1133 temp_c = temp_raw * 0.1f; in acurite_606_decode() 1202 temp_raw = temp_raw >> 4; in acurite_590tx_decode() 1205 …if (temp_raw >= 0 && temp_raw <= 100) // NOTE: no other way to differentiate humidity from tempera… in acurite_590tx_decode() [all …]
|
H A D | prologue.c | 44 int temp_raw; in prologue_callback() local 68 temp_raw = (int16_t)((b[2] << 8) | (b[3] & 0xF0)); // uses sign-extend in prologue_callback() 69 temp_raw = temp_raw >> 4; in prologue_callback() 79 "temperature_C", "Temperature", DATA_FORMAT, "%.02f C", DATA_DOUBLE, temp_raw * 0.1, in prologue_callback()
|
H A D | tfa_pool_thermometer.c | 33 int temp_raw; in tfa_pool_thermometer_decode() local 62 temp_raw = ((b[1] & 0x0F) << 8) + b[2]; in tfa_pool_thermometer_decode() 63 temp_f = (temp_raw > 2048 ? temp_raw - 4096 : temp_raw) * 0.1f; in tfa_pool_thermometer_decode()
|
H A D | thermopro_tx2.c | 51 int temp_raw; in thermopro_tx2_decode() local 75 temp_raw = (int16_t)((b[2] << 8) | (b[3] & 0xF0)); // uses sign-extend in thermopro_tx2_decode() 76 temp_raw = temp_raw >> 4; in thermopro_tx2_decode() 86 "temperature_C", "Temperature", DATA_FORMAT, "%.02f C", DATA_DOUBLE, temp_raw * 0.1, in thermopro_tx2_decode()
|
H A D | philips_aj7010.c | 46 int temp_raw; in philips_aj7010_decode() local 116 temp_raw = ((b[3] & 0x3f) << 8) | b[2]; in philips_aj7010_decode() 117 temp_c = (temp_raw / 353.0) - 9.2; // TODO: this is very likely wrong in philips_aj7010_decode() 119 … fprintf(stderr, "\ntemperature: raw: %d\t%08X\tconverted: %.2f\n", temp_raw, temp_raw, temp_c); in philips_aj7010_decode()
|
H A D | holman_ws5029.c | 97 int temp_raw = (int16_t)((b[11] << 8) | (b[12] & 0xf0)); // uses sign-extend in holman_ws5029pcm_decode() local 98 float temp_c = (temp_raw >> 4) * 0.1f; in holman_ws5029pcm_decode() 165 uint16_t temp_raw; in holman_ws5029pwm_decode() local 191 temp_raw = (int16_t)(((b[4] & 0x0f) << 12) | (b[5] << 4)); // uses sign-extend in holman_ws5029pwm_decode() 192 …temp_c = (temp_raw >> 4) * 0.1f; // Convert sign extended int to… in holman_ws5029pwm_decode()
|
H A D | auriol_aft77b2.c | 122 int temp_raw = (ptr[4] >> 4) * 100 + (ptr[4] & 0x0F) * 10 + (ptr[5] >> 4); in auriol_aft77_b2_decode() local 125 temp_raw = -temp_raw; in auriol_aft77_b2_decode() 131 "temperature_C", "Temperature", DATA_FORMAT, "%.02f C", DATA_DOUBLE, temp_raw * 0.1, in auriol_aft77_b2_decode()
|
H A D | wg_pb12v1.c | 56 int temp_raw; in wg_pb12v1_decode() local 77 temp_raw = ((b[1] & 0x0F) << 8) | b[2]; in wg_pb12v1_decode() 78 temp_c = ((float)temp_raw * 0.1) - 40; in wg_pb12v1_decode()
|
H A D | bresser_5in1.c | 114 int temp_raw = (msg[20] & 0x0f) + ((msg[20] & 0xf0) >> 4) * 10 + (msg[21] &0x0f) * 100; in bresser_5in1_decode() local 116 temp_raw = -temp_raw; in bresser_5in1_decode() 117 float temperature = temp_raw * 0.1f; in bresser_5in1_decode()
|
H A D | generic_temperature_sensor.c | 29 int i, device, battery, temp_raw; in generic_temperature_sensor_callback() local 47 temp_raw = (int16_t)(((b[1] & 0x3f) << 10) | (b[2] << 2)); in generic_temperature_sensor_callback() 48 temp_f = (temp_raw >> 4) * 0.1f; in generic_temperature_sensor_callback()
|
H A D | lacrosse_tx141x.c | 183 int temp_raw = (b[4] << 4) | (b[5] >> 4); in lacrosse_tx141x_decode() local 188 float temp_c = (temp_raw - 500) * 0.1f; in lacrosse_tx141x_decode() 205 float speed_kmh = temp_raw * 0.1f; in lacrosse_tx141x_decode() 242 int temp_raw = ((b[1] & 0x0F) << 8) | b[2]; in lacrosse_tx141x_decode() local 243 float temp_c = (temp_raw - 500) * 0.1f; // Temperature in C in lacrosse_tx141x_decode()
|
H A D | solight_te44.c | 46 int id, channel, temp_raw; in solight_te44_callback() local 68 temp_raw = (int16_t)((b[1] << 12) | (b[2] << 4)); // sign-extend in solight_te44_callback() 69 temp_c = (temp_raw >> 4) * 0.1f; in solight_te44_callback()
|
H A D | eurochron.c | 42 int temp_raw, humidity, device, battery_low, button; in eurochron_decode() local 62 temp_raw = (int16_t)((b[3] << 8) | (b[4] & 0xf0)); in eurochron_decode() 63 temp_c = (temp_raw >> 4) * 0.1f; in eurochron_decode()
|
H A D | bresser_7in1.c | 108 int temp_raw = (msg[14] >> 4) * 100 + (msg[14] & 0x0f) * 10 + (msg[15] >> 4); in bresser_7in1_decode() local 109 float temp_c = temp_raw * 0.1f; in bresser_7in1_decode() 112 if (temp_raw > 600) in bresser_7in1_decode() 113 temp_c = (temp_raw - 1000) * 0.1f; in bresser_7in1_decode()
|
H A D | efth800.c | 44 int id, channel, temp_raw, humidity, battery_low; in eurochron_efth800_decode() local 76 temp_raw = (int16_t)((b[2] & 0x3f) << 10) | ((b[3] & 0xf0) << 2); // sign-extend in eurochron_efth800_decode() 77 temp_c = (temp_raw >> 6) * 0.1f; in eurochron_efth800_decode()
|
H A D | telldus_ft0385r.c | 148 int temp_raw = ((b[24] & 0x0f) << 8) | (b[25]); // [196:12] in telldus_ft0385r_decode() local 159 float temp_f = (temp_raw - 400) * 0.1f; in telldus_ft0385r_decode() 182 fprintf(stderr, "temp_raw = %04x %d\n", temp_raw, temp_raw); in telldus_ft0385r_decode() 196 if (temp_raw != 0x7fb) { in telldus_ft0385r_decode()
|
H A D | auriol_afw2a1.c | 63 int temp_raw; in auriol_afw2a1_decode() local 78 temp_raw = (int16_t)(((b[1] & 0x0f) << 12) | (b[2] << 4)); // uses sign extend in auriol_afw2a1_decode() 79 temp_c = (temp_raw >> 4) * 0.1f; in auriol_afw2a1_decode()
|
H A D | inovalley-kw9015b.c | 36 int temp_raw, rain, device; in kw9015b_callback() local 50 temp_raw = (int16_t)((reverse8(b[2]) << 8) | (reverse8(b[1]) & 0xf0)); // sign-extend in kw9015b_callback() 51 temp_c = (temp_raw >> 4) * 0.1f; in kw9015b_callback()
|
H A D | auriol_hg02832.c | 45 int temp_raw; in auriol_hg02832_decode() local 72 temp_raw = (int16_t)(((b[2] & 0x0f) << 12) | (b[3] << 4)); // uses sign extend in auriol_hg02832_decode() 73 temp_c = (temp_raw >> 4) * 0.1f; in auriol_hg02832_decode()
|
H A D | rubicson.c | 54 int id, battery, channel, temp_raw; in rubicson_callback() local 75 temp_raw = (int16_t)((b[1] << 12) | (b[2] << 4)); // sign-extend in rubicson_callback() 76 temp_c = (temp_raw >> 4) * 0.1f; in rubicson_callback()
|
H A D | tfa_30_3221.c | 38 int row, sendmode, channel, battery_low, temp_raw, humidity; in tfa_303221_callback() local 69 temp_raw = ((b[1] & 0x0F) << 8) | b[2]; in tfa_303221_callback() 70 temp_c = (temp_raw - 500) * 0.1f; in tfa_303221_callback()
|
H A D | auriol_ahfl.c | 42 int temp_raw; in auriol_ahfl_decode() local 78 temp_raw = (int16_t)(((b[1] & 0x0f) << 12) | (b[2] << 4)); // uses sign extend in auriol_ahfl_decode() 79 temp_c = (temp_raw >> 4) * 0.1f; in auriol_ahfl_decode()
|
H A D | bresser_3ch.c | 44 int id, battery_low, channel, temp_raw, humidity; in bresser_3ch_decode() local 73 temp_raw = ((b[1] & 0x0F) << 8) + b[2]; in bresser_3ch_decode() 75 temp_f = (temp_raw - 900) * 0.1f; in bresser_3ch_decode()
|
/dports/biology/py-ont-fast5-api/ont_fast5_api-release_4.0.0/test/ |
H A D | test_segmentation_tools.py | 41 temp_raw = segment.get_raw_data('template', scale=False) 42 np.testing.assert_array_equal(temp_raw, raw[10:480]) 45 temp_raw, comp_raw = segment.get_raw_data('both', scale=False) 46 np.testing.assert_array_equal(temp_raw, raw[10:480]) 48 temp_raw, comp_raw = segment.get_raw_data('both', scale=True) 51 np.testing.assert_array_almost_equal(temp_raw, scaled_temp, decimal=5)
|