Home
last modified time | relevance | path

Searched +full:threshold +full:- +full:mv (Results 1 – 9 of 9) sorted by relevance

/Zephyr-Core-3.4.0/dts/bindings/sensor/
Dnuvoton,adc-cmp.yaml2 # SPDX-License-Identifier: Apache-2.0
5 This will perform signal comparision with threshold established.
7 compatible: "nuvoton,adc-cmp"
9 include: sensor-device.yaml
12 io-channels:
13 type: phandle-array
18 threshold-mv:
21 Value in millivolts present on ADC data as threshold assert.
27 threshold assert value that will trigger comparator event.
29 - ADC_CMP_NPCX_GREATER
[all …]
Dite,it8xxx2-vcmp.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "ite,it8xxx2-vcmp"
8 include: sensor-device.yaml
17 vcmp-ch:
22 scan-period:
27 Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for
28 pre-defined values.
35 threshold assert value that will trigger comparator interrupt.
36 Check include/zephyr/dt-bindings/sensor/it8xxx2_vcmp.h file for
37 pre-defined values.
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/ite_vcmp_it8xxx2/
Dvcmp_ite_it8xxx2.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/devicetree/io-channels.h>
14 #include <zephyr/dt-bindings/dt-util.h>
15 #include <zephyr/dt-bindings/sensor/it8xxx2_vcmp.h>
39 /* Voltage comparator x threshold data buffer MSB register */
41 /* Voltage comparator x threshold data buffer LSB register */
58 /* Threshold assert value in mv */
68 /* Work queue to be notified when threshold assertion happens */
81 * Pointer of work queue thread to be notified when threshold assertion
89 const struct vcmp_it8xxx2_config *const config = dev->config; in clear_vcmp_status()
[all …]
/Zephyr-Core-3.4.0/drivers/sensor/nuvoton_adc_cmp_npcx/
Dadc_cmp_npcx.c4 * SPDX-License-Identifier: Apache-2.0
16 /* Work queue to be notified when threshold assertion happens */
37 /* Threshold selection number assigned during initialization */
39 /* Threshold assert value in millivolts */
42 * Condition to be met between measured signal and threshold assert
50 #define ADC_CMP_NPCX_UNDEFINED (-1)
56 if (data->handler) { in adc_cmp_npcx_trigger_work_handler()
57 data->handler(data->dev, data->trigger); in adc_cmp_npcx_trigger_work_handler()
63 const struct adc_cmp_npcx_config *const config = dev->config; in adc_cmp_npcx_init()
64 struct adc_cmp_npcx_data *data = dev->data; in adc_cmp_npcx_init()
[all …]
/Zephyr-Core-3.4.0/drivers/adc/
Dadc_npcx.c4 * SPDX-License-Identifier: Apache-2.0
37 /* ADC internal reference voltage (Unit:mV) */
57 /* threshold control register offset */
65 * for threshold detection.
69 * Sets relation between measured value and assetion threshold value.
71 * 0: Threshold event is generated if Measured data > thrval.
72 * 1: Threshold event is generated if Measured data <= thrval.
75 /* Sets the threshold value to which measured data is compared. */
78 * Pointer of work queue item to be notified when threshold assertion
86 * While threshold interruption is enabled we need to resume to repetitive
[all …]
Dadc_rpi_pico.c5 * SPDX-License-Identifier: Apache-2.0
24 #define ADC_RPI_CHANNEL_NUM (ADC_CS_RROBIN_MSB - ADC_CS_RROBIN_LSB + 1)
58 hw_set_bits(&adc_hw->cs, ADC_CS_START_ONCE_BITS); in adc_start_once()
63 return (uint16_t)adc_hw->result; in adc_get_result()
68 return (adc_hw->cs & ADC_CS_ERR_BITS) ? true : false; in adc_get_err()
74 hw_set_bits(&adc_hw->fcs, ADC_FCS_OVER_BITS); in adc_clear_errors()
75 hw_set_bits(&adc_hw->fcs, ADC_FCS_UNDER_BITS); in adc_clear_errors()
76 hw_set_bits(&adc_hw->fcs, ADC_FCS_ERR_BITS); in adc_clear_errors()
77 hw_set_bits(&adc_hw->cs, ADC_CS_ERR_STICKY_BITS); in adc_clear_errors()
82 adc_hw->cs = ADC_CS_EN_BITS; in adc_enable()
[all …]
/Zephyr-Core-3.4.0/boards/riscv/it82xx2_evb/
Dit82xx2_evb.dts3 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
8 #include <zephyr/dt-bindings/gpio/gpio.h>
10 #include <ite/it8xxx2-pinctrl-map.dtsi>
13 model = "IT82XX2 EV-Board";
14 compatible = "riscv,it82xx2-evb";
17 i2c-0 = &i2c0;
18 peci-0 = &peci0;
22 pwm-0 = &pwm0;
27 zephyr,shell-uart = &uart1;
[all …]
/Zephyr-Core-3.4.0/boards/riscv/it8xxx2_evb/
Dit8xxx2_evb.dts3 * SPDX-License-Identifier: Apache-2.0
6 /dts-v1/;
8 #include <zephyr/dt-bindings/gpio/gpio.h>
10 #include <ite/it8xxx2-pinctrl-map.dtsi>
13 model = "IT8XXX2 EV-Board";
14 compatible = "riscv,it8xxx2-evb";
17 i2c-0 = &i2c0;
18 peci-0 = &peci0;
22 pwm-0 = &pwm0;
27 zephyr,shell-uart = &uart1;
[all …]
/Zephyr-Core-3.4.0/doc/releases/
Drelease-notes-3.3.rst14 * Introduced :ref:`USB-C <usbc_api>` device stack with PD (power delivery)
17 CMSIS-DSP as the default backend.
30 * CVE-2023-0359: Under embargo until 2023-04-20
32 * CVE-2023-0779: Under embargo until 2023-04-22
66 removed in favor of new :dtcompatible:`zephyr,flash-disk` devicetree binding.
71 * Starting from this release ``zephyr-`` prefixed tags won't be created
82 image states). Use of a truncated hash or non-sha256 hash will still work
88 registration function at boot-up. If applications register this then
93 application code, these will now automatically be registered at boot-up (this
129 This may cause out-of-tree scripts or commands to fail if they have relied
[all …]