Home
last modified time | relevance | path

Searched +full:conversion +full:- +full:rate (Results 1 – 25 of 52) sorted by relevance

123

/Zephyr-latest/dts/bindings/sensor/
Dti,tmp1075.yaml2 # SPDX-License-Identifier: Apache-2.0
10 include: [sensor-device.yaml, i2c-device.yaml]
13 conversion-rate:
14 description: Conversion rate in us.
17 - 27500 # 27.5ms
18 - 55000 # 55ms
19 - 110000 # 110ms
20 - 220000 # 220ms
21 alert-gpios:
22 type: phandle-array
[all …]
Dti,tmp112.yaml2 # SPDX-License-Identifier: Apache-2.0
10 include: [sensor-device.yaml, i2c-device.yaml]
13 conversion-rate:
14 description: Conversion rate in mHz (milli-Hertz)
18 - 250
19 - 1000
20 - 4000
21 - 8000
22 extended-mode:
23 description: When true use 13-bit data format allowing measuring temperature up to 128°C
Dti,tmag5273.yaml2 # SPDX-License-Identifier: Apache-2.0
5 Texas Instruments Low-Power Linear 3D Hall-Effect Sensor with an I2C interface.
17 #include <zephyr/dt-bindings/sensor/tmag5273.h>
27 include: [sensor-device.yaml, i2c-device.yaml]
30 operation-mode:
38 - 0 # TMAG5273_DT_OPER_MODE_CONTINUOUS (continuous)
39 - 1 # TMAG5273_DT_OPER_MODE_STANDBY (standby)
49 - 0 # TMAG5273_DT_AXIS_NONE
50 - 1 # TMAG5273_DT_AXIS_X
51 - 2 # TMAG5273_DT_AXIS_Y
[all …]
/Zephyr-latest/drivers/sensor/ti/tmp112/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
12 Enable the driver for Texas Instruments TMP112 High-Accuracy Digital
28 bool "Allow to set conversion rate at runtime"
31 When set conversion rate can be set at runtime using sensor_attr_set
Dtmp112.c4 * SPDX-License-Identifier: Apache-2.0
24 if (i2c_burst_read_dt(&cfg->bus, reg, (uint8_t *)val, sizeof(*val)) < 0) { in tmp112_reg_read()
25 return -EIO; in tmp112_reg_read()
41 return i2c_write_dt(&cfg->bus, buf, sizeof(buf)); in tmp112_reg_write()
47 return (data->config_reg & ~mask) | (value & mask); in set_config_flags()
54 struct tmp112_data *data = dev->data; in tmp112_update_config()
57 rc = tmp112_reg_write(dev->config, TMP112_REG_CONFIG, new_val); in tmp112_update_config()
59 data->config_reg = new_val; in tmp112_update_config()
74 return -ENOTSUP; in tmp112_attr_set()
80 /* the sensor supports two ranges -55 to 128 and -55 to 150 */ in tmp112_attr_set()
[all …]
/Zephyr-latest/dts/bindings/dac/
Dnxp,gau-dac.yaml2 # SPDX-License-Identifier: Apache-2.0
6 compatible: "nxp,gau-dac"
8 include: dac-controller.yaml
11 nxp,dac-reference:
14 - "internal"
15 - "external"
21 nxp,output-voltage-range:
24 - "small"
25 - "medium"
26 - "large"
[all …]
/Zephyr-latest/drivers/sensor/maxim/max30101/
DKconfig1 # MAX30101 heart rate sensor
4 # SPDX-License-Identifier: Apache-2.0
7 bool "MAX30101 Pulse Oximeter and Heart Rate Sensor"
52 bool "Heart rate mode"
54 Set to operate in heart rate only mode. The red LED channel is
63 bool "Multi-LED mode"
65 Set to operate in multi-LED mode. The green, red, and/or IR LED
75 Set the ADC's full-scale range.
82 int "ADC sample rate control"
86 Set the effective sampling rate with one sample consisting of one
[all …]
/Zephyr-latest/samples/drivers/dac/boards/
Dfrdm_rw612.overlay4 dac-channel-id = <1>;
5 dac-resolution = <10>;
10 nxp,conversion-rate = "500K";
11 nxp,output-voltage-range = "large";
Drd_rw612_bga.overlay4 dac-channel-id = <0>;
5 dac-resolution = <10>;
10 nxp,conversion-rate = "500K";
11 nxp,output-voltage-range = "large";
/Zephyr-latest/drivers/sensor/ti/tmp1075/
Dtmp1075.h4 * SPDX-License-Identifier: Apache-2.0
24 /* Scale in micro degrees Celsius -> 0.0625°C per ADC bit resolution */
27 /* Macro to set or clear the TMP1075_OS (One-shot conversion mode) bit based on a boolean value */
31 /* Macro to set the TMP1075_R (Conversion rate) bits */
32 #define TMP1075_SET_CONVERSION_RATE(reg, rate) ((reg) |= ((rate) << 13)) argument
/Zephyr-latest/samples/sensor/thermometer/boards/
Dnucleo_h7a3zi_q.overlay4 * SPDX-License-Identifier: Apache-2.0
9 ambient-temp0 = &tmp1075_temperature;
14 * Note - TMP1075 is not present on the Nucleo h7a3zi_q eval board, and must be
18 pinctrl-0 = <&i2c1_sda_pb7 &i2c1_scl_pb6>;
19 pinctrl-names = "default";
20 compatible = "st,stm32-i2c-v2";
24 friendly-name = "texas_temperature_tmp1075";
26 alert-gpios = <&gpiob 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
27 conversion-rate = <220000>;
28 lower-threshold = <27>;
[all …]
/Zephyr-latest/drivers/sensor/ti/tmp108/
Dtmp108.h3 * Copyright (c) 2022 T-Mobile USA, Inc.
5 * SPDX-License-Identifier: Apache-2.0
91 uint16_t CONF_CR0; /** Conversion rate 1 configuration bit */
92 uint16_t CONF_CR1; /** Conversion rate 2 configuration bit */
99 uint16_t WAKEUP_TIME_IN_MS; /** Wake up and conversion time from one shot */
103 #define TI_TMP108_GET_CONF(x, cfg) ((struct tmp108_config *)(x->config))->reg_def.cfg
/Zephyr-latest/doc/kernel/services/timing/
Dclocks.rst38 fractional ticks are tracked. The choice of tick rate is configurable
45 Conversion subsection
46 ----------
48 Zephyr provides an extensively enumerated conversion library with
51 Control of rounding is provided, and each conversion is available in
61 See the reference documentation for the full enumeration of conversion
66 word, these conversions expand to a 2-4 operation sequence, requiring
127 being 32 bits. Large uptime counts in non-tick units will experience
129 timing-sensitive applications with long uptimes will be configured to
142 -------------
[all …]
/Zephyr-latest/drivers/sensor/maxim/max31875/
Dmax31875.c4 * SPDX-License-Identifier: Apache-2.0
80 ret = i2c_burst_read_dt(&cfg->bus, reg, (uint8_t *)val, sizeof(*val)); in max31875_reg_read()
94 return i2c_burst_write_dt(&cfg->bus, reg, (uint8_t *)&val_be, 2); in max31875_reg_write()
100 return (data->config_reg & ~mask) | (value & mask); in set_config_flags()
106 const struct max31875_config *cfg = dev->config; in max31875_update_config()
107 struct max31875_data *data = dev->data; in max31875_update_config()
114 data->config_reg = new_val; in max31875_update_config()
130 return -ENOTSUP; in max31875_attr_set()
135 /* the sensor supports two ranges -50 to 128 and -50 to 150 */ in max31875_attr_set()
137 if (val->val1 == 128) { in max31875_attr_set()
[all …]
/Zephyr-latest/drivers/adc/
Dadc_npcx.c4 * SPDX-License-Identifier: Apache-2.0
34 /* ADC conversion mode */
107 * Bit-mask indicating the channels to be included in each sampling
131 #define HAL_INSTANCE(dev) ((struct adc_reg *)((const struct adc_npcx_config *)(dev)->config)->base)
138 if (atomic_test_and_set_bit(&data->current_pm_lock, 0) == 0) { in adc_npcx_pm_policy_state_lock_get()
145 if (atomic_test_and_clear_bit(&data->current_pm_lock, 0) == 1) { in adc_npcx_pm_policy_state_lock_put()
153 const struct adc_npcx_config *config = dev->config; in adc_npcx_config_channels()
156 inst->ADCCS = channels & BIT_MASK(NPCX_ADCCS_MAX_CHANNEL_COUNT); in adc_npcx_config_channels()
159 if (config->channel_count > NPCX_ADCCS_MAX_CHANNEL_COUNT) { in adc_npcx_config_channels()
160 inst->ADCCS2 = (channels >> NPCX_ADCCS_MAX_CHANNEL_COUNT) & in adc_npcx_config_channels()
[all …]
Dadc_smartbond_gpadc.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/adc/smartbond-adc.h>
50 * settings for each channel that must be applied before conversion.
61 uint8_t channel_id = channel_cfg->channel_id; in adc_smartbond_channel_setup()
65 return -EINVAL; in adc_smartbond_channel_setup()
68 if (channel_cfg->acquisition_time != ADC_ACQ_TIME_DEFAULT) { in adc_smartbond_channel_setup()
70 return -EINVAL; in adc_smartbond_channel_setup()
73 if (channel_cfg->differential) { in adc_smartbond_channel_setup()
74 if (channel_cfg->input_positive != SMARTBOND_GPADC_P1_09 && in adc_smartbond_channel_setup()
75 channel_cfg->input_positive != SMARTBOND_GPADC_P0_08) { in adc_smartbond_channel_setup()
[all …]
/Zephyr-latest/drivers/sensor/adi/adt7310/
Dadt7310.c4 * SPDX-License-Identifier: Apache-2.0
41 /* Continuous conversion time = 240ms -> 1/0.240*1000000 */
44 /* The quantization step size at 16-bit resolution is 0.0078125. */
51 const struct adt7310_dev_config *cfg = dev->config; in adt7310_temp_reg_read()
59 ret = spi_transceive_dt(&cfg->bus, &tx, &rx); in adt7310_temp_reg_read()
72 const struct adt7310_dev_config *cfg = dev->config; in adt7310_temp_reg_write()
83 return spi_transceive_dt(&cfg->bus, &tx, &rx); in adt7310_temp_reg_write()
88 const struct adt7310_dev_config *cfg = dev->config; in adt7310_reg_read()
96 ret = spi_transceive_dt(&cfg->bus, &tx, &rx); in adt7310_reg_read()
108 const struct adt7310_dev_config *cfg = dev->config; in adt7310_reg_write()
[all …]
/Zephyr-latest/doc/kernel/
Dtimeutil.rst11 nominally constant rate from zero at the instant the system started. The POSIX
19 discontinuities due to `leap seconds <https://what-if.xkcd.com/26/>`__ and
48 <https://tools.ietf.org/html/rfc8536#section-2>`__.
61 Sub-second timestamps like ``struct timespec`` can also use this to produce
62 the calendar time representation and deal with sub-second offsets separately.
77 * The rate of discrete instant representation change. For example Zephyr
84 conditioned by a 1-pulse-per-second GPS signal will be much more accurate
85 than a Zephyr system clock driven by a RC oscillator with a +/- 250 ppm
88 Synchronization or alignment between time scales is done with a multi-step
91 * An instant in a time scale is represented by an (unsigned) 64-bit integer,
[all …]
/Zephyr-latest/include/zephyr/sys/
Dtimeutil.h4 * SPDX-License-Identifier: Apache-2.0
12 * inverse transformations are non-standard or require access to time
18 * conversion on platforms where @c time_t is limited to 32 bits.
44 * @brief Convert broken-down time to a POSIX epoch offset in seconds.
50 * @see http://man7.org/linux/man-pages/man3/timegm.3.html
55 * @brief Convert broken-down time to a POSIX epoch offset in seconds.
60 * the time cannot be represented then @c (time_t)-1 is returned and
63 * @see http://man7.org/linux/man-pages/man3/timegm.3.html
87 /** The nominal instance counter rate in Hz.
96 /** The nominal local counter rate in Hz.
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_pca9685.c4 * SPDX-License-Identifier: Apache-2.0
39 /* See PCA9585 datasheet Rev. 4 - 16 April 2015 section 7.3.5 */
53 * update rate of 1526 Hz
59 * update rate of 24 Hz
65 * update rate of 200 Hz
91 const struct pca9685_config *config = dev->config; in set_reg()
95 ret = i2c_write_dt(&config->i2c, buf, sizeof(buf)); in set_reg()
106 const struct pca9685_config *config = dev->config; in get_reg()
109 ret = i2c_write_read_dt(&config->i2c, &addr, sizeof(addr), value, in get_reg()
119 struct pca9685_data *data = dev->data; in set_pre_scale()
[all …]
/Zephyr-latest/drivers/sensor/st/hts221/
Dhts221.c4 * SPDX-License-Identifier: Apache-2.0
34 struct hts221_data *data = dev->data; in hts221_channel_get()
42 conv_val = (int32_t)(data->t1_degc_x8 - data->t0_degc_x8) * in hts221_channel_get()
43 (data->t_sample - data->t0_out) / in hts221_channel_get()
44 (data->t1_out - data->t0_out) + in hts221_channel_get()
45 data->t0_degc_x8; in hts221_channel_get()
48 val->val1 = conv_val / 8; in hts221_channel_get()
49 val->val2 = (conv_val % 8) * (1000000 / 8); in hts221_channel_get()
51 conv_val = (int32_t)(data->h1_rh_x2 - data->h0_rh_x2) * in hts221_channel_get()
52 (data->rh_sample - data->h0_t0_out) / in hts221_channel_get()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dcharger.h4 * SPDX-License-Identifier: Apache-2.0
107 * Reserved to demark downstream custom properties - use this value as the actual value may
160 * Charging is occurring at the slowest desired charge rate,
164 /** Charging is occurring at the fastest desired charge rate */
166 /** Charging is occurring at a moderate charge rate */
173 * Charging is occurring at a reduced charge rate to preserve
178 * The charger device is being bypassed and the power conversion
187 * These conditions determine the ability to, or the rate of, charge
355 const struct charger_driver_api *api = (const struct charger_driver_api *)dev->api; in z_impl_charger_get_prop()
357 return api->get_property(dev, prop, val); in z_impl_charger_get_prop()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max44009/
Dmax44009.c4 * SPDX-License-Identifier: Apache-2.0
22 const struct max44009_config *config = dev->config; in max44009_reg_read()
40 if (i2c_transfer_dt(&config->i2c, msgs, 2) != 0) { in max44009_reg_read()
41 return -EIO; in max44009_reg_read()
50 const struct max44009_config *config = dev->config; in max44009_reg_write()
53 return i2c_write_dt(&config->i2c, tx_buf, sizeof(tx_buf)); in max44009_reg_write()
63 return -EIO; in max44009_reg_update()
81 return -ENOTSUP; in max44009_attr_set()
86 /* convert rate to mHz */ in max44009_attr_set()
87 cr = val->val1 * 1000 + val->val2 / 1000; in max44009_attr_set()
[all …]
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dak8963.c4 * SPDX-License-Identifier: Apache-2.0
72 /* The sensor device returns 10^-9 Teslas after scaling. in ak8963_convert_magn()
80 return -EOVERFLOW; in ak8963_convert_magn()
85 val->val1 = scaled_val / 1000000; in ak8963_convert_magn()
86 val->val2 = scaled_val % 1000000; in ak8963_convert_magn()
96 const struct mpu9250_config *cfg = dev->config; in ak8963_execute_rw()
106 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw()
115 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw()
124 ret = i2c_reg_write_byte_dt(&cfg->i2c, in ak8963_execute_rw()
134 ret = i2c_reg_read_byte_dt(&cfg->i2c, in ak8963_execute_rw()
[all …]
/Zephyr-latest/drivers/serial/
Duart_native_tty_bottom.c5 * SPDX-License-Identifier: Apache-2.0
31 * @brief Lookup table for mapping the baud rate to the macro understood by termios.
50 * - Not canonical (no line input) in native_tty_termios_defaults_set()
51 * - No signal generation from Ctr+{C|Z..} in native_tty_termios_defaults_set()
52 * - No echoing in native_tty_termios_defaults_set()
54 ter->c_lflag &= ~(ICANON | ISIG | ECHO); in native_tty_termios_defaults_set()
57 * No conversion of newline to carriage return/line feed. in native_tty_termios_defaults_set()
59 ter->c_oflag &= ~(OPOST | ONLCR); in native_tty_termios_defaults_set()
62 ter->c_iflag &= ~(IXON | IXOFF | IXANY); in native_tty_termios_defaults_set()
65 ter->c_cc[VMIN] = 0; in native_tty_termios_defaults_set()
[all …]

123