Home
last modified time | relevance | path

Searched +full:output +full:- +full:gain (Results 1 – 25 of 81) sorted by relevance

1234

/Zephyr-Core-3.7.0/dts/bindings/dac/
Dadi,ad569x-base.yaml2 # SPDX-License-Identifier: Apache-2.0
4 include: [dac-controller.yaml]
7 "#io-channel-cells":
10 voltage-reference:
14 - "internal"
15 - "external"
18 - Internal voltage reference - 2.5V (reg: 0).
19 - External voltage reference (reg: 1).
22 gain:
24 default: "gain-1"
[all …]
Dti,dacx0508-base.yaml2 # SPDX-License-Identifier: Apache-2.0
4 include: [dac-controller.yaml, spi-device.yaml]
7 voltage-reference:
13 See constants in dt-bindings/dac/dacx0508.h.
15 channel0-gain:
19 Channel 0 gain select
21 See constants in dt-bindings/dac/dacx0508.h.
23 channel1-gain:
27 Channel 1 gain select
29 See constants in dt-bindings/dac/dacx0508.h.
[all …]
Dmicrochip,mcp4728.yaml1 description: Microchip MCP4728 12-bit 4-channel DAC
5 include: [dac-controller.yaml, i2c-device.yaml]
8 "#io-channel-cells":
16 0 - Vdd
17 1 - Internal voltage reference (2.048V)
24 Power-down mode select.
25 0 - normal mode
26 1 - Vout is loaded with 1 kOhm resistor to ground
27 2 - Vout is loaded 100 kOhm resistor to ground
28 3 - Vout is loaded with 500 kOhm resistor to ground
[all …]
Dti,dacx0501.yaml2 # SPDX-License-Identifier: Apache-2.0
11 voltage-reference:
15 - "internal"
16 - "external"
20 output-gain:
24 - "mul2"
25 - "mul1"
26 - "div2"
28 This setting can be used to control the output voltage range within the supported bit
29 resolution. mul2 will double the output range but lower the resolution, while div2 will
/Zephyr-Core-3.7.0/boards/google/twinkie_v2/
Dgoogle_twinkie_v2.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
9 #include <st/g0/stm32g0b1r(b-c-e)ixn-pinctrl.dtsi>
10 #include <zephyr/dt-bindings/input/input-event-codes.h>
14 compatible = "google,twinkie-v2";
22 compatible = "gpio-leds";
35 compatible = "gpio-keys";
47 compatible = "voltage-divider";
48 io-channels = <&adc1 1>;
49 output-ohms = <2000000000>;
[all …]
/Zephyr-Core-3.7.0/dts/bindings/sensor/
Dti,fdc2x1x.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [sensor-device.yaml, i2c-device.yaml]
11 sd-gpios:
12 type: phandle-array
18 intb-gpios:
19 type: phandle-array
28 Set to identify the sensor as FDC2114 or FDC2214 (4-channel version)
33 Set the Auto-Scan Mode.
36 "active-channel" (single channel mode).
38 true = Auto-Scan conversions as selected by "rr-sequence"
[all …]
Dvishay,vcnl36825t.yaml2 # SPDX-License-Identifier: Apache-2.0
10 include: [sensor-device.yaml, i2c-device.yaml]
13 operation-mode:
19 - "auto": the sensor performs sampling continuously,
20 - "force": the sampling is performed on every fetch command.
24 Note: "force"-mode only available if low-power mode inactive.
26 measurement-period:
34 - [10, 80] ms only if low power mode is inactive
35 - [80, 320] ms only in low power mode
37 Defaults to 40 ms which is supported in both normal and low-power mode.
[all …]
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_rescale/boards/
Dnative_sim.overlay4 * SPDX-License-Identifier: Apache-2.0
7 #include <zephyr/dt-bindings/adc/adc.h>
11 compatible = "voltage-divider";
12 io-channels = <&adc0 0>;
13 output-ohms = <50>;
14 full-ohms = <100>;
18 compatible = "current-sense-shunt";
19 io-channels = <&adc0 1>;
20 shunt-resistor-micro-ohms = <500000>;
24 compatible = "current-sense-amplifier";
[all …]
/Zephyr-Core-3.7.0/dts/bindings/audio/
Dnxp,dmic.yaml2 # SPDX-License-Identifier: Apache-2.0
8 include: [base.yaml, pinctrl-device.yaml]
17 pinctrl-0:
26 Use 2FS output, and bypass final half band decimator. This will reduce
31 child-binding:
33 NXP DMIC channel. Can be used to configure filtering and gain attributes
36 compatible: "nxp,dmic-channel"
47 Decimator gain shift. Sets the number of bits to shift decimated PCM
48 data by, as a positive or negative number. Range of [-15,15]. Default
51 compensation-2fs:
[all …]
/Zephyr-Core-3.7.0/soc/intel/intel_adsp/cavs/include/cavs25/
Ddmic_regs.h1 /* SPDX-License-Identifier: Apache-2.0 */
65 /* Common FIFO channels register (primary & secondary) (0000 - 0FFF)
79 * (crossed out) 0010h LOCAL_TSC0 64-bit Wall Clock timestamp
80 * (crossed out) 0018h LOCAL_SAMPLE0 64-bit Sample Count
81 * 001Ch - 00FFh Reserved space for extensions
127 /* Gain for left channel */
130 /* Gain for right channel */
166 /* Output Format */
220 /* Polarity of the microphone output. */
223 /* Polarity of the microphone output. */
[all …]
/Zephyr-Core-3.7.0/soc/intel/intel_adsp/ace/include/
Ddmic_regs.h1 /* SPDX-License-Identifier: Apache-2.0 */
42 /* Capture Link Select - select which link wall clock to time stamp. */
68 /* Common FIFO channels register (primary & secondary) (0000 - 0FFF)
82 * (crossed out) 0010h LOCAL_TSC0 64-bit Wall Clock timestamp
83 * (crossed out) 0018h LOCAL_SAMPLE0 64-bit Sample Count
84 * 001Ch - 00FFh Reserved space for extensions
130 /* Gain for left channel */
133 /* Gain for right channel */
169 /* Output Format */
223 /* Polarity of the microphone output. */
[all …]
/Zephyr-Core-3.7.0/drivers/dac/
Ddac_ad569x.c4 * SPDX-License-Identifier: Apache-2.0
32 uint8_t gain; member
39 const struct ad569x_config *config = dev->config; in ad569x_write()
46 return i2c_write_dt(&config->bus, tx_data, sizeof(tx_data)); in ad569x_write()
51 const struct ad569x_config *config = dev->config; in ad569x_read()
56 ret = i2c_read_dt(&config->bus, rx_data, sizeof(rx_data)); in ad569x_read()
68 const struct ad569x_config *config = dev->config; in ad569x_channel_setup()
70 if (channel_cfg->channel_id > 0) { in ad569x_channel_setup()
71 LOG_ERR("invalid channel %d", channel_cfg->channel_id); in ad569x_channel_setup()
72 return -EINVAL; in ad569x_channel_setup()
[all …]
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_emul/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
43 * @brief Setup channel with specific reference and gain
47 * @param gain Gain applied to ADC @p channel
53 enum adc_gain gain, int channel) in channel_setup() argument
57 .gain = gain, in channel_setup()
80 * @param gain Gain applied to ADC @p channel_id
86 enum adc_gain gain) in check_samples() argument
88 int32_t output, expected; in check_samples() local
93 output = m_sample_buffer[i]; in check_samples()
94 ret = adc_raw_to_millivolts(ref_mv, gain, ADC_RESOLUTION, in check_samples()
[all …]
/Zephyr-Core-3.7.0/drivers/adc/
Dadc_ads1x1x.c5 * SPDX-License-Identifier: Apache-2.0
74 /* +/-6.144V range = Gain 1/3 */
76 /* +/-4.096V range = Gain 1/2 */
78 /* +/-2.048V range = Gain 1 (default) */
80 /* +/-1.024V range = Gain 2 */
82 /* +/-0.512V range = Gain 4 */
84 /* +/-0.256V range = Gain 8 */
108 /* Non-latching comparator (default) */
148 const struct ads1x1x_config *config = dev->config; in ads1x1x_read_reg()
152 ret = i2c_burst_read_dt(&config->bus, reg_addr, (uint8_t *)&reg_val, sizeof(reg_val)); in ads1x1x_read_reg()
[all …]
Dadc_emul.c10 * SPDX-License-Identifier: Apache-2.0
48 /** Gain used on output value */
49 enum adc_gain gain; member
109 const struct adc_emul_config *config = dev->config; in adc_emul_const_value_set()
110 struct adc_emul_data *data = dev->data; in adc_emul_const_value_set()
113 if (chan >= config->num_channels) { in adc_emul_const_value_set()
115 return -EINVAL; in adc_emul_const_value_set()
118 chan_cfg = &data->chan_cfg[chan]; in adc_emul_const_value_set()
120 k_mutex_lock(&data->cfg_mtx, K_FOREVER); in adc_emul_const_value_set()
122 chan_cfg->input = ADC_EMUL_CONST_VALUE; in adc_emul_const_value_set()
[all …]
Dadc_ads7052.c5 * SPDX-License-Identifier: Apache-2.0
43 const struct ads7052_config *config = dev->config; in adc_ads7052_channel_setup()
45 if (channel_cfg->gain != ADC_GAIN_1) { in adc_ads7052_channel_setup()
46 LOG_ERR("unsupported channel gain '%d'", channel_cfg->gain); in adc_ads7052_channel_setup()
47 return -ENOTSUP; in adc_ads7052_channel_setup()
50 if (channel_cfg->reference != ADC_REF_VDD_1) { in adc_ads7052_channel_setup()
51 LOG_ERR("unsupported channel reference '%d'", channel_cfg->reference); in adc_ads7052_channel_setup()
52 return -ENOTSUP; in adc_ads7052_channel_setup()
55 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_ads7052_channel_setup()
56 LOG_ERR("unsupported acquisition_time '%d'", channel_cfg->acquisition_time); in adc_ads7052_channel_setup()
[all …]
/Zephyr-Core-3.7.0/tests/drivers/build_all/dac/
Dapp.overlay4 * SPDX-License-Identifier: Apache-2.0
9 * with real-world devicetree nodes, to allow these tests to run on
15 #address-cells = <1>;
16 #size-cells = <1>;
20 gpio-controller;
22 #gpio-cells = <0x2>;
27 #address-cells = <1>;
28 #size-cells = <0>;
32 clock-frequency = <100000>;
37 #io-channel-cells = <1>;
[all …]
/Zephyr-Core-3.7.0/tests/drivers/adc/adc_accuracy_test/boards/
Dfrdm_k64f.overlay4 * SPDX-License-Identifier: Apache-2.0
8 * J4.3 will be the ADC input and J4.11 the DAC output
13 io-channels = <&adc0 20>;
15 dac-channel-id = <0>;
16 dac-resolution = <12>;
21 #address-cells = <1>;
22 #size-cells = <0>;
27 zephyr,gain = "ADC_GAIN_1";
29 zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
/Zephyr-Core-3.7.0/include/zephyr/drivers/sensor/
Dveml7700.h5 * SPDX-License-Identifier: Apache-2.0
40 * @brief VEML7700 gain options for ambient light measurements.
77 * <tt>SENSOR_ATTR_LOWER_THRESH</tt> with 16-bit unsigned integer
80 * depends on the current gain and integration time settings. So a
81 * change in gain or integration time usually requires an update of
83 * into the sensor update the thresholds -after- a change of gain
90 * @brief Gain setting for ALS measurements (ALS_GAIN).
134 * enumerator as an argument will result in a <tt>-ENOTSUP</tt>.
141 * This channel is the White Channel count output of the sensor.
143 * strong infrared content in the 750-800nm spectrum.
/Zephyr-Core-3.7.0/samples/drivers/adc/adc_dt/
DREADME.rst1 .. zephyr:code-sample:: adc_dt
2 :name: Analog-to-Digital Converter (ADC) with devicetree
3 :relevant-api: adc_interface
16 The pins of the ADC channels are board-specific. Please refer to the board
26 ``io-channels`` property of the ``zephyr,user`` node. This is usually done with
30 Configuration of channels (settings like gain, reference, or acquisition time)
43 .. zephyr-app-commands::
44 :zephyr-app: samples/drivers/adc/adc_dt
52 Sample output
55 You should get a similar output as below, repeated every second:
[all …]
/Zephyr-Core-3.7.0/dts/bindings/adc/
Dadc-controller.yaml3 # SPDX-License-Identifier: Apache-2.0
10 "#io-channel-cells":
14 "#address-cells":
17 "#size-cells":
20 child-binding:
36 zephyr,gain:
40 Gain selection:
41 - ADC_GAIN_1_6: x 1/6
42 - ADC_GAIN_1_5: x 1/5
43 - ADC_GAIN_1_4: x 1/4
[all …]
/Zephyr-Core-3.7.0/tests/drivers/build_all/sensor/
Dadc.dtsi5 * SPDX-License-Identifier: Apache-2.0
14 io-channels = <&test_adc 0>;
19 compatible = "voltage-divider";
20 io-channels = <&test_adc 1>;
21 io-channel-names = "VOLTAGE";
22 output-ohms = <47000>; /* R1 */
23 full-ohms = <(100000 + 47000)>; /* R2 + R1 */
24 power-gpios = <&test_gpio 0 0>;
29 compatible = "current-sense-amplifier";
30 io-channels = <&test_adc 2>;
[all …]
/Zephyr-Core-3.7.0/samples/drivers/adc/adc_sequence/
DREADME.rst1 .. zephyr:code-sample:: adc_sequence
2 :name: Analog-to-Digital Converter (ADC) sequence sample
3 :relevant-api: adc_interface
24 child node, with your desired settings like gain, reference, or acquisition time and
36 .. zephyr-app-commands::
37 :zephyr-app: samples/drivers/adc/adc_sequence
45 Sample output
48 You should get a similar output as below, repeated every second:
50 .. code-block:: console
53 - ADC_0, channel 0, 5 sequence samples:
[all …]
/Zephyr-Core-3.7.0/samples/bluetooth/hap_ha/src/
Dvcp_vol_renderer.c5 * Copyright (c) 2020-2022 Nordic Semiconductor ASA
8 * SPDX-License-Identifier: Apache-2.0
39 static void aics_state_cb(struct bt_aics *inst, int err, int8_t gain, uint8_t mute, uint8_t mode) in aics_state_cb() argument
44 printk("AICS inst %p state gain %d, mute %u, mode %u\n", in aics_state_cb()
45 inst, gain, mute, mode); in aics_state_cb()
53 printk("AICS gain settings get failed (%d) for inst %p\n", err, inst); in aics_gain_setting_cb()
55 printk("AICS inst %p gain settings units %u, min %d, max %d\n", in aics_gain_setting_cb()
144 snprintf(output_desc[i], sizeof(output_desc[i]), "Output %d", i + 1); in vcp_vol_renderer_init()
157 vcp_register_param.aics_param[i].min_gain = -100; in vcp_vol_renderer_init()
/Zephyr-Core-3.7.0/soc/nxp/kinetis/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
35 Set this option to use the oscillator in low-power mode.
38 bool "High gain oscillator"
40 Set this option to use the oscillator in high-gain mode.
67 Selects the amount to divide the VCO output of the PLL. The VDIV 0 bits
94 Include the 16-byte flash configuration field that stores default

1234