Home
last modified time | relevance | path

Searched +full:iir +full:- +full:filter (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/
DREADME.rst1 .. zephyr:code-sample:: number_crunching
17 .. code-block:: cmake
27 filtering (Fast Fourier Transform (FFT)) or echo cancellation (Least Mean Square (LMS) filter
32 - :file:`main.c`: calls the generic math functions;
33 - :file:`math_ops.c`: executes the math functions, computes the cycles it took to execute and check…
34 - :file:`cmsis_dsp_wrapper.c`: calls the exact math functions from CMSIS-DSP if :kconfig:option:`CO…
35 - :file:`nature_dsp_wrapper`: if ``LIB_LOCATION`` is defined and points to an out of tree location …
42 CMSIS-DSP is an optional module and needs to be added explicitly to your Zephyr workspace:
44 .. code-block:: shell
46 west config manifest.project-filter -- +cmsis-dsp
[all …]
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/include/
Dmath_ops.h4 * SPDX-License-Identifier: Apache-2.0
12 * @brief Vector Sum - makes pair wise saturated summation of vectors
14 * @param[in] *input1 - points to the first input vector
15 * @param[in] *input2 - points to the second input vector
16 * @param[out] *output - points to the output vector
17 * @param[in] length - number of samples in each vector
27 * @brief Power of a Vector - makes sum of the squares of the elements of
30 * @param[in] *input - points to the input vector
31 * @param[in] length - size of the input vector
32 * @param[in] rsh - right shift of result
[all …]
/Zephyr-latest/modules/cmsis-dsp/
DKconfig2 # SPDX-License-Identifier: Apache-2.0
8 bool "CMSIS-DSP Library Support"
10 This option enables the CMSIS-DSP library.
44 * Complex-by-Complex Multiplication
45 * Complex-by-Real Multiplication
62 * Sine-Cosine
75 * Fixed-Point Division
92 * Levinson-Durbin Algorithm
94 The following filter types are supported:
96 * FIR (finite impulse response) Filter
[all …]
/Zephyr-latest/include/zephyr/dt-bindings/input/
Desp32-touch-sensor-input.h4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/dt-bindings/dt-util.h>
12 /* Touch sensor IIR filter mode */
22 /* Touch sensor level of filter noise threshold coefficient*/
28 /* Touch sensor level of filter applied on the original data */
/Zephyr-latest/include/zephyr/drivers/sensor/
Dbmp581_user.h4 * SPDX-License-Identifier: Apache-2.0
63 /* IIR filter for temperature and pressure */
75 /* This is used to enable IIR config,
76 * keep in mind that disabling IIR back in runtime is not
/Zephyr-latest/dts/bindings/sensor/
Dbosch,bmp388.yaml2 # SPDX-License-Identifier: Apache-2.0
6 include: sensor-device.yaml
9 int-gpios:
10 type: phandle-array
16 200 - 200 - 5ms (default; chip reset value)
17 100 - 100 - 10ms
18 50 - 50 - 20ms
19 25 - 25 - 40ms
20 12.5 - 25/2 - 80ms
21 6.25 - 25/4 - 160ms
[all …]
Dbosch,bmp390.yaml3 # SPDX-License-Identifier: Apache-2.0
7 include: sensor-device.yaml
10 int-gpios:
11 type: phandle-array
17 200 - 200 - 5ms (default; chip reset value)
18 100 - 100 - 10ms
19 50 - 50 - 20ms
20 25 - 25 - 40ms
21 12.5 - 25/2 - 80ms
22 6.25 - 25/4 - 160ms
[all …]
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/src/
Dnature_dsp_wrapper.c4 * SPDX-License-Identifier: Apache-2.0
14 * 2 - 32-bit dynamic scaling
15 * 3 - fixed scaling before each stage
57 * Initialization routine for IIR filters in real_block_iir_32()
64 * Call Bi-quad Real Block IIR in real_block_iir_32()
65 * value = NULL: scratch memory area (for fixed-point functions only) in real_block_iir_32()
67 * The filter calculates block_size output samples using in real_block_iir_32()
88 * value = NULL: scratch memory area (for fixed-point functions only) in lms_iir_32()
90 * The filter calculates block_size output samples using in lms_iir_32()
Dmath_ops.c4 * SPDX-License-Identifier: Apache-2.0
21 if (abs(in_a[i] - in_b[i]) > threshold) { in test_near_equal_q15()
44 printk("[Library Test] Vector Sum takes %d cycles\r\n", stop - start); in test_vec_sum_int16_op()
67 printk("[Library Test] Vector power sum takes %d cycles\r\n", stop - start); in test_power_int16_op()
82 printk("[Library Test] Vector power sum takes %d cycles\r\n", stop - start); in test_power_int32_op()
103 stop - start); in test_fft_op()
109 printk("[Library Test] == Bi-quad Real Block IIR test ==\r\n"); in test_iir_op()
116 printk("[Library Test] Bi-quad Real Block IIR takes %d cycles\r\n", stop - start); in test_iir_op()
117 printk("[Library Test] == Bi-quad Real Block IIR end ==\r\n\r\n"); in test_iir_op()
134 printk("[Library Test] == Least Mean Square (LMS) Filter for Real Data test ==\r\n"); in test_fir_blms_op()
[all …]
/Zephyr-latest/dts/bindings/input/
Despressif,esp32-touch-sensor.yaml2 # SPDX-License-Identifier: Apache-2.0
8 sensor is defined in a child node of the touch-sensor node and defines a specific key
13 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 #include <zephyr/dt-bindings/input/esp32-touch-sensor-input.h>
17 compatible = "espressif,esp32-touch";
20 debounce-interval-ms = <30>;
21 href-microvolt = <27000000>;
22 lref-microvolt = <500000>;
23 href-atten-microvolt = <1000000>;
24 filter-mode = <ESP32_TOUCH_FILTER_MODE_IIR_16>;
[all …]
/Zephyr-latest/drivers/sensor/bosch/bme680/
DKconfig6 # SPDX-License-Identifier: Apache-2.0
15 Enable driver for BME680 I2C- or SPI- based temperature, pressure, humidity and gas sensor.
74 prompt "BME680 IIR low-pass filter coefficient"
77 Select the filter coefficient for the BME680 sensor.
79 bool "filter off"
/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.c5 * SPDX-License-Identifier: Apache-2.0
36 static int set_iir_config(const struct sensor_value *iir, const struct device *dev);
42 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in set_power_mode()
48 return -EINVAL; in set_power_mode()
64 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, &odr); in set_power_mode()
70 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, odr); in set_power_mode()
88 ret = -ENOTSUP; in set_power_mode()
95 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, odr); in set_power_mode()
99 ret = -EINVAL; in set_power_mode()
108 struct bmp581_config *conf = (struct bmp581_config *)dev->config; in get_power_mode()
[all …]
/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/
Dsensor.h4 * SPDX-License-Identifier: Apache-2.0
77 /* IIR filter */
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
60 /* Set IIR filter for the temperature and pressure measurements */
65 TC_PRINT("Set IIR filter\n"); in set_sensor_iir_filter()
82 coeffs->par_h1 = (uint16_t)(((uint16_t)register_data[HUMI_PAR_H1_MSB_BUF_POSITION] << 4) | in read_calibration_coeffs()
85 coeffs->par_h2 = (uint16_t)(((uint16_t)register_data[HUMI_PAR_H2_MSB_BUF_POSITION] << 4) | in read_calibration_coeffs()
88 coeffs->par_h3 = (uint8_t)register_data[HUMI_PAR_H3_BUF_POSITION]; in read_calibration_coeffs()
89 coeffs->par_h4 = (uint8_t)register_data[HUMI_PAR_H4_BUF_POSITION]; in read_calibration_coeffs()
90 coeffs->par_h5 = (uint8_t)register_data[HUMI_PAR_H5_BUF_POSITION]; in read_calibration_coeffs()
91 coeffs->par_h6 = (uint8_t)register_data[HUMI_PAR_H6_BUF_POSITION]; in read_calibration_coeffs()
92 coeffs->par_h7 = (uint8_t)register_data[HUMI_PAR_H7_BUF_POSITION]; in read_calibration_coeffs()
[all …]
/Zephyr-latest/tests/drivers/build_all/sensor/
Dspi.dtsi4 * SPDX-License-Identifier: Apache-2.0
16 spi-max-frequency = <0>;
17 int1-gpios = <&test_gpio 0 0>;
23 spi-max-frequency = <0>;
24 int1-gpios = <&test_gpio 0 0>;
30 spi-max-frequency = <0>;
36 spi-max-frequency = <0>;
37 int-gpios = <&test_gpio 0 0>;
43 spi-max-frequency = <0>;
49 spi-max-frequency = <0>;
[all …]
Di2c.dtsi4 * SPDX-License-Identifier: Apache-2.0
9 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h>
10 #include <zephyr/dt-bindings/sensor/lsm6dso.h>
11 #include <zephyr/dt-bindings/sensor/lsm6dso16is.h>
12 #include <zephyr/dt-bindings/sensor/lps22hh.h>
13 #include <zephyr/dt-bindings/sensor/lps2xdf.h>
14 #include <zephyr/dt-bindings/sensor/lis2ds12.h>
15 #include <zephyr/dt-bindings/sensor/lis2dw12.h>
16 #include <zephyr/dt-bindings/sensor/ism330dhcx.h>
17 #include <zephyr/dt-bindings/sensor/iis2dlpc.h>
[all …]
/Zephyr-latest/drivers/sensor/bosch/bmp388/
Dbmp388.c5 * SPDX-License-Identifier: Apache-2.0
8 * https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp388-ds001.pdf
29 { 0, 3 }, /* 25/8192 - 327.68s */
30 { 0, 6 }, /* 25/4096 - 163.84s */
31 { 0, 12 }, /* 25/2048 - 81.92s */
32 { 0, 24 }, /* 25/1024 - 40.96s */
33 { 0, 49 }, /* 25/512 - 20.48s */
34 { 0, 98 }, /* 25/256 - 10.24s */
35 { 0, 195 }, /* 25/128 - 5.12s */
36 { 0, 391 }, /* 25/64 - 2.56s */
[all …]