Home
last modified time | relevance | path

Searched +full:temperature +full:- +full:format (Results 1 – 25 of 53) sorted by relevance

123

/Zephyr-latest/dts/bindings/sensor/
Dadi,adltc2990.yaml2 # SPDX-License-Identifier: Apache-2.0
5 description: ADLTC2990 Quad I2C Voltage, Current and Temperature Monitor
9 include: [sensor-device.yaml, i2c-device.yaml]
12 temperature-format:
15 Define the temperature format. As per the datasheet,
16 b7 Temperature Format Temperature Reported In; Celsius = 0 (Default), Kelvin = 1
19 - 0
20 - 1
22 acquistion-format:
25 Define the acquisition format. As per the datasheet,
[all …]
Dti,tmp112.yaml2 # SPDX-License-Identifier: Apache-2.0
5 TMP112 Digital Temperature Sensor. See more info at
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:
[all …]
Dmaxim,max31875.yaml4 # SPDX-License-Identifier: Apache-2.0
8 Maxim MAX31875 Low-Power I2C Temperature Sensor.
14 include: [sensor-device.yaml, i2c-device.yaml]
17 conversions-per-second:
19 Number of temperature readings performed by the MAX31875 per second.
20 0.25 conversions per second is the power-on reset configuration.
26 - "0.25"
27 - "1"
28 - "4"
29 - "8"
[all …]
/Zephyr-latest/tests/drivers/sensor/adltc2990/boards/
Dnative_sim.overlay2 * SPDX-FileCopyrightText: Copyright (c) 2023 Carl Zeiss Meditec AG
3 * SPDX-License-Identifier: Apache-2.0
10 measurement-mode = <0 0>;
11 pins-v1-v2-current-resistor = <0>;
12 pins-v3-v4-current-resistor = <0>;
13 pin-v1-voltage-divider-resistors = <500 1000>;
14 pin-v2-voltage-divider-resistors = <110000 100000>;
15 pin-v3-voltage-divider-resistors = <7000 1000>;
16 pin-v4-voltage-divider-resistors = <500 1000>;
22 temperature-format = <0>;
[all …]
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.h4 * SPDX-License-Identifier: Apache-2.0
59 /* Helpers to convert from TCN75A temperature fixed point format
60 * to sensor val2 format. When the LSB of the TCN75A temperature sample
61 * is treated as an integer, the format to convert to sensor val2 is
66 * of the temperature register aren't used, it doesn't matter.
/Zephyr-latest/drivers/sensor/silabs/si7006/
Dsi7006.c5 * SPDX-License-Identifier: Apache-2.0
24 uint16_t temperature; member
41 struct si7006_data *si_data = dev->data; in si7006_get_humidity()
42 const struct si7006_config *config = dev->config; in si7006_get_humidity()
46 retval = i2c_burst_read_dt(&config->i2c, SI7006_MEAS_REL_HUMIDITY_MASTER_MODE, in si7006_get_humidity()
50 si_data->humidity = sys_be16_to_cpu(hum) & ~3; in si7006_get_humidity()
59 * @brief function to get temperature
62 * calling si7006_get_temperature, as the get old temperature command is used.
69 struct si7006_data *si_data = dev->data; in si7006_get_temperature()
70 const struct si7006_config *config = dev->config; in si7006_get_temperature()
[all …]
/Zephyr-latest/drivers/sensor/jedec/jc42/
Djc42.h6 * SPDX-License-Identifier: Apache-2.0
38 * * Bits 9-10 control threshold hysteresis
45 /* 16 bits are used for temperature and state encoding:
46 * * Bits 0..11 encode the temperature in a 2s complement signed value
48 * * Bit 12 is set to indicate a negative temperature
49 * * Bit 13 is set to indicate a temperature below the lower threshold
50 * * Bit 14 is set to indicate a temperature above the upper threshold
51 * * Bit 15 is set to indicate a temperature above the critical threshold
55 #define JC42_TEMP_ABS_MASK ((uint16_t)(JC42_TEMP_SIGN_BIT - 1U))
103 /* Encode a signed temperature in scaled Celsius to the format used in
[all …]
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/
DREADME.rst1 .. zephyr:code-sample:: secure-mqtt-sensor-actuator
3 :relevant-api: mqtt_socket sensor_interface
5 Implement an MQTT-based IoT sensor/actuator device
16 - Establishing network connectivity using a DHCPv4 lease
17 - Establishing a secure MQTT connection (using TLS 1.2) to MQTT broker
18 - Publishing temperature sensor data in JSON format to the MQTT broker at a user-defined interval
19 - Subscribing to user-defined topic(s) on MQTT broker
20 - Responding to commands received over the network (LED control)
21 - Handling of MQTT connection, re-connecting and keep-alive
22 - Network status LED
[all …]
/Zephyr-latest/dts/bindings/i2c/
Dinfineon,xmc4xxx-i2c.yaml4 # SPDX-License-Identifier: Apache-2.0
12 Example devicetree configuration with an adt7420 temperature sensor
16 compatible = "infineon,xmc4xxx-i2c";
19 pinctrl-0 = <&i2c_scl_p0_13_u1c1 &i2c_sda_p3_15_u1c1>;
20 pinctrl-names = "default";
21 scl-src = "DX1B";
22 sda-src = "DX0A";
25 #address-cells = <1>;
26 #size-cells = <0>;
28 clock-frequency = <I2C_BITRATE_STANDARD>;
[all …]
/Zephyr-latest/drivers/sensor/ti/lm95234/
Dlm95234.c4 * SPDX-License-Identifier: Apache-2.0
74 /** Temperatures in raw format read from sensor */
92 int offset = (chan - SENSOR_CHAN_LM95234_REMOTE_TEMP_1); in lm95234_fetch_temp()
94 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp()
100 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp()
109 /* Read signed temperature if unsigned temperature is 0, or for local sensor */ in lm95234_fetch_temp()
112 (chan - SENSOR_CHAN_LM95234_REMOTE_TEMP_1 + 1); in lm95234_fetch_temp()
115 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp()
121 ret = i2c_reg_read_byte_dt(&cfg->i2c, in lm95234_fetch_temp()
136 struct lm95234_data *data = dev->data; in lm95234_sample_fetch()
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl367/
Dadxl367.c4 * SPDX-License-Identifier: Apache-2.0
29 * @param dev - The device structure.
30 * @param th - Structure holding the activity threshold information:
39 struct adxl367_data *data = dev->data; in adxl367_setup_activity_detection()
43 ret = data->hw_tf->write_reg_mask(dev, ADXL367_ACT_INACT_CTL, in adxl367_setup_activity_detection()
46 FIELD_PREP(ADXL367_ACT_INACT_CTL_ACT_EN_MSK, th->enable) | in adxl367_setup_activity_detection()
48 th->referenced)); in adxl367_setup_activity_detection()
53 ret = data->hw_tf->write_reg_mask(dev, ADXL367_THRESH_ACT_H, ADXL367_THRESH_H_MSK, in adxl367_setup_activity_detection()
54 FIELD_PREP(ADXL367_THRESH_H_MSK, th->value >> 6)); in adxl367_setup_activity_detection()
59 return data->hw_tf->write_reg_mask(dev, ADXL367_THRESH_ACT_L, ADXL367_THRESH_L_MSK, in adxl367_setup_activity_detection()
[all …]
Dadxl367.h4 * SPDX-License-Identifier: Apache-2.0
57 #define ADXL367_XDATA 0x08u /* X-axis acceleration data [13:6] */
58 #define ADXL367_YDATA 0x09u /* Y-axis acceleration data [13:6] */
59 #define ADXL367_ZDATA 0x0Au /* Z-axis acceleration data [13:6] */
63 #define ADXL367_X_DATA_H 0x0Eu /* X-axis acceleration data [13:6] */
64 #define ADXL367_X_DATA_L 0x0Fu /* X-axis acceleration data [5:0] */
65 #define ADXL367_Y_DATA_H 0x10u /* Y-axis acceleration data [13:6] */
66 #define ADXL367_Y_DATA_L 0x11u /* Y-axis acceleration data [5:0] */
67 #define ADXL367_Z_DATA_H 0x12u /* Z-axis acceleration data [13:6] */
68 #define ADXL367_Z_DATA_L 0x13u /* Z-axis acceleration data [5:0] */
[all …]
/Zephyr-latest/drivers/sensor/nxp/nxp_kinetis_temp/
Dtemp_kinetis.c4 * SPDX-License-Identifier: Apache-2.0
18 * - ADC samples are in uint16_t format
19 * - Both ADC channels (sensor and bandgap) are on the same ADC instance
45 const struct temp_kinetis_config *config = dev->config; in temp_kinetis_sample_fetch()
46 struct temp_kinetis_data *data = dev->data; in temp_kinetis_sample_fetch()
56 return -ENOTSUP; in temp_kinetis_sample_fetch()
60 memcpy(previous, data->buffer, sizeof(previous)); in temp_kinetis_sample_fetch()
63 err = adc_read(config->adc, &config->adc_seq); in temp_kinetis_sample_fetch()
69 LOG_DBG("sensor = %d, bandgap = %d", data->buffer[0], data->buffer[1]); in temp_kinetis_sample_fetch()
74 data->buffer[i] = (data->buffer[i] >> 1) + in temp_kinetis_sample_fetch()
[all …]
/Zephyr-latest/drivers/sensor/ti/tmp116/
Dtmp116.c4 * SPDX-License-Identifier: Apache-2.0
13 #include <zephyr/dt-bindings/sensor/tmp116.h>
31 const struct tmp116_dev_config *cfg = dev->config; in tmp116_reg_read()
33 if (i2c_burst_read_dt(&cfg->bus, reg, (uint8_t *)val, 2) in tmp116_reg_read()
35 return -EIO; in tmp116_reg_read()
46 const struct tmp116_dev_config *cfg = dev->config; in tmp116_reg_write()
49 return i2c_write_dt(&cfg->bus, tx_buf, sizeof(tx_buf)); in tmp116_reg_write()
72 struct tmp116_data *drv_data = dev->data; in check_eeprom_bounds()
80 /* TMP117 uses EEPROM[2] as temperature offset register */ in check_eeprom_bounds()
81 if (drv_data->id == TMP117_DEVICE_ID && in check_eeprom_bounds()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/
Duuid.h6 * Copyright (c) 2015-2016 Intel Corporation
8 * SPDX-License-Identifier: Apache-2.0
31 /** UUID type 16-bit. */
33 /** UUID type 32-bit. */
35 /** UUID type 128-bit. */
39 /** Size in octets of a 16-bit UUID */
42 /** Size in octets of a 32-bit UUID */
45 /** Size in octets of a 128-bit UUID */
56 /** UUID value, 16-bit in host endianness. */
63 /** UUID value, 32-bit in host endianness. */
[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
203 /** The battery temperature is below the "cold" threshold */
211 /** The battery temperature is in the "warm" range */
213 /** The battery temperature is in the "cool" range */
215 /** The battery temperature is below the "hot" threshold */
264 /* Fields have the format: */
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()
376 const struct charger_driver_api *api = (const struct charger_driver_api *)dev->api; in z_impl_charger_set_prop()
[all …]
Dfuel_gauge.h5 * SPDX-License-Identifier: Apache-2.0
41 /** Used to cutoff the battery from the system - useful for storage/shipping of devices */
45 /** Whether the battery underlying the fuel-gauge is cut off from charge */
65 /** Absolute state of charge (percent, 0-100) - expressed as % of design capacity */
67 /** Relative state of charge (percent, 0-100) - expressed as % of full charge capacity */
69 /** Temperature in 0.1 K */
107 * Reserved to demark downstream custom properties - use this value as the actual value may
120 /* Fields have the format: */
150 uint16_t temperature; member
241 * Note: Historically this API allowed drivers to implement a custom multi-get/set property
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dcoap_server.rst13 Zephyr comes with a batteries-included CoAP server, which uses services to listen for CoAP
23 .. code-block:: cfg
32 .. code-block:: c
33 :caption: ``sections-ram.ld``
41 .. code-block:: cmake
45 zephyr_linker_sources(DATA_SECTIONS sections-ram.ld)
54 .. code-block:: c
73 .. code-block:: c
97 /* Set content format */
134 of CoAP services. An example using a temperature sensor can look like:
[all …]
/Zephyr-latest/drivers/disk/nvme/
Dnvme.h3 * SPDX-License-Identifier: Apache-2.0
36 uint8_t reserved3[3492]; /* 5Ch - DFFh */
44 uint8_t reserved4[484]; /* E1Ch - FFFh */
56 /** Max Power Scale, Non-Operational State */
98 /* bytes 0-255: controller capabilities and features */
121 /** multi-interface capabilities */
167 /* bytes 256-511: admin command set attributes */
196 /** Warning Composite Temperature Threshold */
199 /** Critical Composite Temperature Threshold */
221 /** Extended Device Self-test Time */
[all …]
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dmesh.c4 * SPDX-License-Identifier: Apache-2.0
50 uint16_t format:1; member
55 uint8_t format:1; member
187 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_get()
190 bt_mesh_model_elem(model)->rt->addr, state->current); in gen_onoff_get()
192 net_buf_simple_add_u8(&msg, state->current); in gen_onoff_get()
205 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack()
206 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_set_unack()
221 if (state->last_tid == tid && state->last_tx_addr == ctx->addr && in gen_onoff_set_unack()
222 (now - state->last_msg_timestamp <= (6 * MSEC_PER_SEC))) { in gen_onoff_set_unack()
[all …]
/Zephyr-latest/drivers/sensor/maxim/ds18b20/
Dds18b20.c4 * SPDX-License-Identifier: Apache-2.0
8 * Driver for DS18B20 and DS18S20 1-Wire temperature sensors
10 * - https://www.analog.com/media/en/technical-documentation/data-sheets/ds18b20.pdf
11 * - https://www.analog.com/media/en/technical-documentation/data-sheets/ds18s20.pdf
42 /* convert resolution in bits to scratchpad config format */
43 #define DS18B20_RESOLUTION(res) ((res - 9) << DS18B20_RESOLUTION_POS)
45 #define DS18B20_RESOLUTION_INDEX(res) (res - 9)
77 /* measure wait time for 9-bit, 10-bit, 11-bit, 12-bit resolution respectively */
87 const struct ds18b20_config *cfg = dev->config; in ds18b20_temperature_from_raw()
90 if (cfg->chip == type_ds18s20) { in ds18b20_temperature_from_raw()
[all …]
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_decoder.c1 /* ST Microelectronics LSM6DSV16X 6-axis IMU sensor driver
6 * SPDX-License-Identifier: Apache-2.0
11 #include <zephyr/dt-bindings/sensor/lsm6dsv16x.h>
69 (q31_t) (round((val) * ((int64_t)1 << (31 - (range)))))
76 (q31_t) ((int64_t)(micro_val) * ((int64_t)1 << (31 - (range))) / 1000000LL)
97 /* bit range for Temperature sensor */
100 /* transform temperature LSB into micro-Celsius */
106 /* Calculate scaling factor to transform micro-g/LSB unit into micro-ms2/LSB */
121 /* Calculate scaling factor to transform micro-dps/LSB unit into micro-rads/LSB */
143 const struct lsm6dsv16x_decoder_header *header = &data->header; in lsm6dsv16x_decoder_get_frame_count()
[all …]
/Zephyr-latest/drivers/adc/
Dadc_stm32wb0.c4 * SPDX-License-Identifier: Apache-2.0
9 * - sampling: a single analog-to-digital conversion performed by the ADC
10 * - sequence: one or more sampling(s) performed one after the other by the
13 * - round: all ADC operations needed to read all channels in the adc_sequence passed
20 * - idle mode: clock & ADC configuration that minimizes power consumption
21 * - Only the ADC digital domain clock is turned on:
22 * - ADC is powered off (CTRL.ADC_CTRL_ADC_ON_OFF = 0)
23 * - ADC analog domain clock is turned off
24 * - If applicable:
25 * - ADC LDO is disabled
[all …]
/Zephyr-latest/doc/releases/
Drelease-notes-1.5.rst7 1.5.0. This is the first release to follow the 3-month release cadence.
13 - TCP Support
14 - Integration of the Paho MQTT Library support with QoS
15 - Flash Filesystem Support
16 - Integration of the mbedTLS library for encryption
17 - Improved BR/EDR support (for L2CAP, in particular).
18 - Support for the Altera Nios II/f soft CPU architecture
25 - Added nano_fifo_put_list() APIs, which allows queuing a list of elements
27 - Removed unused memory pool structure field.
28 - Enhanced memory pool code.
[all …]
Dmigration-guide-3.5.rst21 taking a ``void *mem`` pointer instead of a ``void **mem`` double-pointer.
37 * The default C library used on most targets has changed from the built-in
47 increase by 8-16 bytes.
68 * Picolibc removes the ``-ffreestanding`` compiler option. This allows
71 the Zephyr required type -- ``int main(void)``.
79 while 'minimal' mode also removes support for format modifiers and
100 * ``psa-arch-tests``
102 * ``tf-m-tests``
103 * ``tflite-micro``
107 To enable them again use the ``west config manifest.project-filter -- +<module
[all …]

123