Home
last modified time | relevance | path

Searched refs:raw (Results 1 – 25 of 43) sorted by relevance

12

/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/srce/
Ddequant.c128 static INLINE float dequant_float(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in dequant_float() argument
130 float result = (1 << (scale_factor + 1)) * ((raw * 2.0f + 1.0f) / ((1 << bits) - 1.0f) - 1.0f); in dequant_float()
147 INLINE OI_INT32 OI_SBC_Dequant(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in OI_SBC_Dequant() argument
159 d = (raw * 2) + 1; in OI_SBC_Dequant()
168 float_result = dequant_float(raw, scale_factor, bits); in OI_SBC_Dequant()
186 INLINE OI_INT32 OI_SBC_Dequant_Unscaled(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits) in OI_SBC_Dequant_Unscaled() argument
199 result = (raw << 16) + raw - 0x7fff7fff; in OI_SBC_Dequant_Unscaled()
204 d = (raw * 2) + 1; in OI_SBC_Dequant_Unscaled()
Dreadsamplesjoint.inc77 OI_UINT32 raw;
82 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr);
83 dequant = OI_SBC_Dequant(raw, sf, bits);
91 OI_UINT32 raw;
96 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr);
97 dequant = OI_SBC_Dequant(raw, sf, bits);
Ddecoder-private.c244 OI_UINT32 raw; in OI_SBC_ReadSamples() local
245 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); in OI_SBC_ReadSamples()
246 dequant = OI_SBC_Dequant(raw, sf, bits); in OI_SBC_ReadSamples()
/hal_espressif-latest/components/esp_adc/esp32/
Dadc_cali_line_fitting.c138 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage);
244 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage) in cali_raw_to_voltage() argument
251 raw = (raw << (ADC_BITWIDTH_12 - ctx->bitwidth)); in cali_raw_to_voltage()
252 if (raw > ADC_12_BIT_RES - 1) { in cali_raw_to_voltage()
253 raw = ADC_12_BIT_RES - 1; //Set to 12bit res max in cali_raw_to_voltage()
256 …if (LUT_ENABLED && (ctx->atten == ADC_ATTEN_DB_12) && (raw >= LUT_LOW_THRESH)) { //Check if in no… in cali_raw_to_voltage()
258 … uint32_t lut_voltage = calculate_voltage_lut(raw, ctx->vref, ctx->low_curve, ctx->high_curve); in cali_raw_to_voltage()
259 … if (raw <= LUT_HIGH_THRESH) { //If ADC is transitioning from linear region to non-linear region in cali_raw_to_voltage()
261 uint32_t linear_voltage = calculate_voltage_linear(raw, ctx->coeff_a, ctx->coeff_b); in cali_raw_to_voltage()
262 …*voltage = interpolate_two_points(linear_voltage, lut_voltage, LUT_ADC_STEP_SIZE, (raw - LUT_LOW_T… in cali_raw_to_voltage()
[all …]
/hal_espressif-latest/components/esp_adc/
Dadc_cali_curve_fitting.c66 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage);
127 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage) in cali_raw_to_voltage() argument
135 raw -= chan_compensation; in cali_raw_to_voltage()
138 raw = raw <= 0 ? 0 : in cali_raw_to_voltage()
139 raw > max_val ? max_val : raw; in cali_raw_to_voltage()
142 …uint64_t v_cali_1 = (uint64_t)raw * ctx->chars_first_step.coeff_a / coeff_a_scaling + ctx->chars_f… in cali_raw_to_voltage()
Dadc_cali.c40 esp_err_t adc_cali_raw_to_voltage(adc_cali_handle_t handle, int raw, int *voltage) in adc_cali_raw_to_voltage() argument
45 return handle->raw_to_voltage(handle->ctx, raw, voltage); in adc_cali_raw_to_voltage()
Dadc_oneshot.c249 int raw = 0; in adc_oneshot_get_calibrated_result() local
250 ESP_RETURN_ON_ERROR(adc_oneshot_read(handle, chan, &raw), TAG, "adc oneshot read fail"); in adc_oneshot_get_calibrated_result()
251 ESP_LOGD(TAG, "raw: 0d%d", raw); in adc_oneshot_get_calibrated_result()
252 …ESP_RETURN_ON_ERROR(adc_cali_raw_to_voltage(cali_handle, raw, cali_result), TAG, "adc calibration … in adc_oneshot_get_calibrated_result()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/server/include/
Dsensor_server.h85 struct net_buf_simple *raw; member
226 struct net_buf_simple *raw; member
238 struct net_buf_simple *raw; member
/hal_espressif-latest/components/esp_adc/esp32c2/
Dadc_cali_line_fitting.c48 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage);
112 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage) in cali_raw_to_voltage() argument
117 *voltage = raw * ctx->coeff_a / coeff_a_scaling + ctx->coeff_b; in cali_raw_to_voltage()
/hal_espressif-latest/components/esp_adc/interface/
Dadc_cali_interface.h34 esp_err_t (*raw_to_voltage)(void *arg, int raw, int *voltage);
/hal_espressif-latest/components/esp_adc/include/esp_adc/
Dadc_cali.h54 esp_err_t adc_cali_raw_to_voltage(adc_cali_handle_t handle, int raw, int *voltage);
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/server/
Dsensor_server.c369 SENSOR_SETTING_ACCESS_LEN + (item->raw ? item->raw->len : 0); in send_sensor_setting_status()
411 if (item->raw) { in send_sensor_setting_status()
412 net_buf_simple_add_mem(msg, item->raw->data, item->raw->len); in send_sensor_setting_status()
652 .sensor_series_get.raw = buf, in sensor_get()
949 .sensor_setting_set.raw = buf, in sensor_setting_set()
958 if (item->access == SENSOR_SETTING_ACCESS_READ_WRITE && item->raw) { in sensor_setting_set()
959 net_buf_simple_reset(item->raw); in sensor_setting_set()
960 net_buf_simple_add_mem(item->raw, buf->data, in sensor_setting_set()
961 MIN(buf->len, item->raw->size)); in sensor_setting_set()
965 change.sensor_setting_set.value = item->raw; in sensor_setting_set()
[all …]
/hal_espressif-latest/components/esp_adc/esp32s2/
Dadc_cali_line_fitting.c87 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage);
147 static esp_err_t cali_raw_to_voltage(void *arg, int raw, int *voltage) in cali_raw_to_voltage() argument
152 *voltage = raw * ctx->coeff_a / coeff_a_scaling + ctx->coeff_b / coeff_b_scaling; in cali_raw_to_voltage()
/hal_espressif-latest/tools/esptool_py/docs/en/esptool/
Dremote-serial-ports.rst36 …possible to specify ``--port socket://<host>:<port>`` syntax for a simple "raw TCP socket" protoco…
38 These raw sockets don't support setting the baud rate or automatic resetting into the bootloader. I…
/hal_espressif-latest/components/soc/esp32c6/include/soc/
Dgdma_struct.h924 volatile gdma_in_int_raw_chn_reg_t raw; member
931 volatile gdma_out_int_raw_chn_reg_t raw; member
/hal_espressif-latest/components/soc/esp32h2/include/soc/
Dgdma_struct.h924 volatile gdma_in_int_raw_chn_reg_t raw; member
931 volatile gdma_out_int_raw_chn_reg_t raw; member
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/esp32/
Dfields.py475 raw = self.get_raw()
476 delta = (raw & (sign_bit - 1)) - (raw & sign_bit)
/hal_espressif-latest/tools/esptool_py/espefuse/efuse/
Dbase_operations.py300 raw = ""
302 raw = "({})".format(e.get_bitstring())
339 raw,
/hal_espressif-latest/components/bt/host/bluedroid/external/sbc/decoder/include/
Doi_codec_sbc_private.h215 OI_INT32 OI_SBC_Dequant(OI_UINT32 raw, OI_UINT scale_factor, OI_UINT bits);
/hal_espressif-latest/components/esp_phy/
DCMakeLists.txt100 # the object file to a raw binary
/hal_espressif-latest/components/hal/esp32s3/include/hal/
Dadc_ll.h965 static inline bool adc_oneshot_ll_raw_check_valid(adc_unit_t adc_n, uint32_t raw) in adc_oneshot_ll_raw_check_valid() argument
970 adc_ll_rtc_output_data_t *temp = (adc_ll_rtc_output_data_t *)&raw; in adc_oneshot_ll_raw_check_valid()
/hal_espressif-latest/components/soc/esp32c2/include/soc/
Dgdma_struct.h34 } raw; member
/hal_espressif-latest/components/soc/esp32c3/include/soc/
Dgdma_struct.h34 } raw; member
/hal_espressif-latest/components/bt/esp_ble_mesh/api/models/include/
Desp_ble_mesh_sensor_model_api.h454 struct net_buf_simple *raw; /*!< The value of Sensor Setting Raw field */ member
/hal_espressif-latest/components/hal/esp32s2/include/hal/
Dadc_ll.h714 static inline bool adc_oneshot_ll_raw_check_valid(adc_unit_t adc_n, uint32_t raw) in adc_oneshot_ll_raw_check_valid() argument
719 adc_ll_rtc_output_data_t *temp = (adc_ll_rtc_output_data_t *)&raw; in adc_oneshot_ll_raw_check_valid()

12