/Zephyr-latest/dts/bindings/sensor/ |
D | st,lsm6dso-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 5 When setting the accel-pm, accel-range, accel-odr, gyro-pm, gyro-range, 6 gyro-odr properties in a .dts or .dtsi file you may include lsm6dso.h 10 #include <zephyr/dt-bindings/sensor/lsm6dso.h> 15 accel-pm = <LSM6DSO_DT_XL_ULP_MODE>; 16 accel-range = <LSM6DSO_DT_FS_8G>; 17 accel-odr = <LSM6DSO_DT_ODR_1Hz6>; 18 gyro-pm = <LSM6DSO_DT_GY_NORMAL_MODE>; 19 gyro-range = <LSM6DSO_DT_FS_2000DPS>; 20 gyro-odr = <LSM6DSO_DT_ODR_6667Hz>; [all …]
|
D | invensense,icm42688.yaml | 4 # SPDX-License-Identifier: Apache-2.0 7 ICM-42688 motion tracking device 8 When setting the accel-pm, accel-range, accel-odr, gyro-pm, gyro-range, 9 gyro-odr properties in a .dts or .dtsi file you may include icm42688.h 13 #include <zephyr/dt-bindings/sensor/icm42688.h> 18 accel-pwr-mode = <ICM42688_ACCEL_LN>; 19 accel-fs = <ICM42688_ACCEL_FS_16G>; 20 accel-odr = <ICM42688_ACCEL_ODR_2000>; 21 gyro-pwr-mode= <ICM42688_GYRO_LN>; 22 gyro-fs = <ICM42688_GYRO_FS_2000>; [all …]
|
/Zephyr-latest/tests/drivers/build_all/sensor/ |
D | i2c.dtsi | 4 * 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/st/lis2ds12/ |
D | lis2ds12.c | 1 /* ST Microelectronics LIS2DS12 3-axis accelerometer driver 5 * SPDX-License-Identifier: Apache-2.0 20 #include <zephyr/dt-bindings/sensor/lis2ds12.h> 28 const struct lis2ds12_config *cfg = dev->config; in lis2ds12_set_odr() 29 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lis2ds12_set_odr() 34 LOG_DBG("%s: set power-down", dev->name); in lis2ds12_set_odr() 43 if ((odr >= LIS2DS12_DT_ODR_1600Hz && cfg->pm != LIS2DS12_DT_HIGH_FREQUENCY) || in lis2ds12_set_odr() 44 (odr < LIS2DS12_DT_ODR_1600Hz && cfg->pm == LIS2DS12_DT_HIGH_FREQUENCY) || in lis2ds12_set_odr() 45 (odr == LIS2DS12_DT_ODR_1Hz_LP && cfg->pm != LIS2DS12_DT_LOW_POWER)) { in lis2ds12_set_odr() 46 LOG_ERR("%s: bad odr and pm combination", dev->name); in lis2ds12_set_odr() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi08x/ |
D | bmi08x_accel.c | 5 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/pm/device.h> 27 const struct bmi08x_accel_config *bmi08x = dev->config; in bmi08x_accel_transceive_i2c() 30 return i2c_write_read_dt(&bmi08x->bus.i2c, ®, 1, data, length); in bmi08x_accel_transceive_i2c() 33 return -EINVAL; in bmi08x_accel_transceive_i2c() 39 return i2c_write_dt(&bmi08x->bus.i2c, buf, 1 + length); in bmi08x_accel_transceive_i2c() 88 length -= len1; in bmi08x_write_config_file_i2c() 96 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmi08x_bus_check_i2c() 114 const struct bmi08x_accel_config *bmi08x = dev->config; in bmi08x_accel_transceive_spi() 124 return spi_transceive_dt(&bmi08x->bus.spi, &tx, &rx); in bmi08x_accel_transceive_spi() [all …]
|
D | bmi08x_accel_trigger.c | 5 * SPDX-License-Identifier: Apache-2.0 10 #include <zephyr/pm/device.h> 21 struct bmi08x_accel_data *data = dev->data; in bmi08x_handle_drdy_acc() 32 if (data->handler_drdy_acc) { in bmi08x_handle_drdy_acc() 33 data->handler_drdy_acc(dev, data->drdy_trig_acc); in bmi08x_handle_drdy_acc() 53 struct bmi08x_accel_data *data = dev->data; in bmi08x_acc_thread_main() 56 k_sem_take(&data->sem, K_FOREVER); in bmi08x_acc_thread_main() 67 bmi08x_handle_interrupts_acc((void *)data->dev); in bmi08x_acc_work_handler() 80 k_sem_give(&data->sem); in bmi08x_acc_gpio_callback() 82 k_work_submit(&data->work); in bmi08x_acc_gpio_callback() [all …]
|
D | bmi08x_gyro.c | 5 * SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/pm/device.h> 26 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_i2c() 29 return i2c_write_read_dt(&bmi08x->bus.i2c, ®, 1, data, length); in bmi08x_gyro_transceive_i2c() 32 return -EINVAL; in bmi08x_gyro_transceive_i2c() 38 return i2c_write_dt(&bmi08x->bus.i2c, buf, 1 + length); in bmi08x_gyro_transceive_i2c() 43 return i2c_is_ready_dt(&bus->i2c) ? 0 : -ENODEV; in bmi08x_bus_check_i2c() 58 const struct bmi08x_gyro_config *bmi08x = dev->config; in bmi08x_gyro_transceive_spi() 68 return spi_transceive_dt(&bmi08x->bus.spi, &tx, &rx); in bmi08x_gyro_transceive_spi() 71 return spi_write_dt(&bmi08x->bus.spi, &tx); in bmi08x_gyro_transceive_spi() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2dux12/ |
D | lis2dux12.c | 1 /* ST Microelectronics LIS2DUX12 3-axis accelerometer driver 5 * SPDX-License-Identifier: Apache-2.0 52 const struct lis2dux12_config *cfg = dev->config; in lis2dux12_freq_to_odr_val() 55 size_t i = (cfg->pm != LIS2DUX12_OPER_MODE_LOW_POWER) ? LIS2DUX12_DT_ODR_6Hz in lis2dux12_freq_to_odr_val() 57 size_t len = (cfg->pm != LIS2DUX12_OPER_MODE_LOW_POWER) ? LIS2DUX12_DT_ODR_END in lis2dux12_freq_to_odr_val() 67 return -EINVAL; in lis2dux12_freq_to_odr_val() 74 const struct lis2dux12_config *const cfg = dev->config; in lis2dux12_set_fs() 75 const struct lis2dux12_chip_api *chip_api = cfg->chip_api; in lis2dux12_set_fs() 92 return -EINVAL; in lis2dux12_set_fs() 95 ret = chip_api->set_range(dev, range); in lis2dux12_set_fs() [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dso/ |
D | lsm6dso.c | 1 /* ST Microelectronics LSM6DSO 6-axis IMU sensor driver 5 * SPDX-License-Identifier: Apache-2.0 36 return -EINVAL; in lsm6dso_freq_to_odr_val() 47 return lsm6dso_odr_map[ARRAY_SIZE(lsm6dso_odr_map) - 1]; in lsm6dso_odr_to_freq_val() 62 return -EINVAL; in lsm6dso_accel_range_to_fs_val() 86 return -EINVAL; in lsm6dso_gyro_range_to_fs_val() 91 const struct lsm6dso_config *cfg = dev->config; in lsm6dso_reboot() 92 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lsm6dso_reboot() 95 return -EIO; in lsm6dso_reboot() 98 /* Wait sensor turn-on time as per datasheet */ in lsm6dso_reboot() [all …]
|
/Zephyr-latest/drivers/sensor/st/lis2dh/ |
D | lis2dh.c | 4 * SPDX-License-Identifier: Apache-2.0 14 #include <zephyr/pm/device.h> 23 * Use values for low-power mode in DS "Mechanical (Sensor) characteristics", 40 * max(raw_val >> 4) = +/- 2^11 in lis2dh_convert() 45 val->val1 = converted_val / 1000000; in lis2dh_convert() 46 val->val2 = converted_val % 1000000; in lis2dh_convert() 51 int ret = -ENOTSUP; in lis2dh_sample_fetch_temp() 54 struct lis2dh_data *lis2dh = dev->data; in lis2dh_sample_fetch_temp() 55 const struct lis2dh_config *cfg = dev->config; in lis2dh_sample_fetch_temp() 58 ret = lis2dh->hw_tf->read_data(dev, cfg->temperature.dout_addr, raw, in lis2dh_sample_fetch_temp() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | bmi160.c | 5 * SPDX-License-Identifier: Apache-2.0 8 * http://ae-bst.resource.bosch.com/media/_tech/media/datasheets/BST-BMI160-DS000-07.pdf 17 #include <zephyr/pm/pm.h> 18 #include <zephyr/pm/device.h> 19 #include <zephyr/pm/device_runtime.h> 34 const struct bmi160_cfg *cfg = dev->config; in bmi160_transceive() 56 return spi_transceive_dt(&cfg->bus.spi, &tx, &rx); in bmi160_transceive() 59 return spi_write_dt(&cfg->bus.spi, &tx); in bmi160_transceive() 64 const struct bmi160_cfg *cfg = dev->config; in bmi160_bus_ready_spi() 66 return spi_is_ready_dt(&cfg->bus.spi); in bmi160_bus_ready_spi() [all …]
|
/Zephyr-latest/drivers/sensor/bosch/bma4xx/ |
D | bma4xx.c | 1 /* Bosch BMA4xx 3-axis accelerometer driver 6 * SPDX-License-Identifier: Apache-2.0 15 #include <zephyr/pm/device.h> 29 return -ERANGE; in bma4xx_offset_to_reg_val() 42 struct bma4xx_data *bma4xx = dev->data; in bma4xx_attr_set_offset() 51 reg_addr = BMA4XX_REG_OFFSET_0 + (chan - SENSOR_CHAN_ACCEL_X); in bma4xx_attr_set_offset() 56 return bma4xx->hw_ops->write_reg(dev, reg_addr, reg_val[0]); in bma4xx_attr_set_offset() 66 return bma4xx->hw_ops->write_data(dev, reg_addr, (uint8_t *)reg_val, in bma4xx_attr_set_offset() 69 return -ENOTSUP; in bma4xx_attr_set_offset() 96 return -ERANGE; in bma4xx_odr_to_reg() [all …]
|
/Zephyr-latest/drivers/sensor/tdk/icm42670/ |
D | icm42670.c | 6 * SPDX-License-Identifier: Apache-2.0 13 #include <zephyr/pm/device.h> 35 const struct icm42670_config *cfg = dev->config; in icm42670_reg_read() 37 return cfg->bus_io->read(&cfg->bus, reg, buf, size); in icm42670_reg_read() 43 return icm42670_reg_read(serif->context, reg, rbuffer, rlen); in inv_io_hal_read_reg() 49 const struct icm42670_config *cfg = dev->config; in icm42670_reg_write() 51 return cfg->bus_io->write(&cfg->bus, reg, (uint8_t *)buf, size); in icm42670_reg_write() 57 return icm42670_reg_write(serif->context, reg, wbuffer, wlen); in inv_io_hal_write_reg() 280 if ((val->val1 == ICM42670_LOW_POWER_MODE) && in icm42670_set_accel_power_mode() 281 (drv_data->accel_pwr_mode != ICM42670_LOW_POWER_MODE)) { in icm42670_set_accel_power_mode() [all …]
|
/Zephyr-latest/doc/releases/ |
D | release-notes-2.7.rst | 17 * Support for M-Profile Vector Extensions (MVE) on ARMv8.1-M 18 * Improved thread safety for Newlib and C++ on SMP-capable systems 20 * New Action-based Power Management API 23 * Linker Support for Tightly-Coupled Memory in RISC-V 25 * Support for extended PCI / PCIe capabilities, improved MIS-X support 33 * The kernel now supports both 32- and 64-bit architectures 36 * We added support for Point-to-Point Protocol (PPP) 37 * We added support for UpdateHub, an end-to-end solution for over-the-air device updates 38 * We added support for ARM Cortex-R Architecture 40 * Expanded support for ARMv6-M architecture [all …]
|
D | release-notes-2.6.rst | 13 * Added support for 64-bit ARCv3 14 * Split ARM32 and ARM64, ARM64 is now a top-level architecture 15 * Added initial support for Arm v8.1-m and Cortex-M55 19 * Device runtime power management (PM), former IDLE runtime, was 22 https://github.com/zephyrproject-rtos/example-application 34 * CVE-2021-3581: Under embargo until 2021-09-04 41 <https://github.com/zephyrproject-rtos/zephyr/issues?q=is%3Aissue+is%3Aopen+label%3Abug>`_. 46 * Driver APIs now return ``-ENOSYS`` if optional functions are not implemented. 47 If the feature is not supported by the hardware ``-ENOTSUP`` will be returned. 48 Formerly ``-ENOTSUP`` was returned for both failure modes, meaning this change [all …]
|
D | release-notes-3.5.rst | 38 * CVE-2023-3725 `Zephyr project bug tracker GHSA-2g3m-p6c7-8rr3 39 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-2g3m-p6c7-8rr3>`_ 41 * CVE-2023-4257 `Zephyr project bug tracker GHSA-853q-q69w-gf5j 42 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-853q-q69w-gf5j>`_ 44 * CVE-2023-4258 `Zephyr project bug tracker GHSA-m34c-cp63-rwh7 45 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-m34c-cp63-rwh7>`_ 47 * CVE-2023-4259 `Zephyr project bug tracker GHSA-gghm-c696-f4j4 48 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gghm-c696-f4j4>`_ 50 * CVE-2023-4260 `Zephyr project bug tracker GHSA-gj27-862r-55wh 51 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-gj27-862r-55wh>`_ [all …]
|
D | release-notes-3.2.rst | 13 * Added support for :ref:`bin-blobs` (also see :ref:`west-blobs`). 15 * Converted all supported boards from ``pinmux`` to :ref:`pinctrl-guide`. 31 * CVE-2022-2993: Under embargo until 2022-11-03 33 * CVE-2022-2741: Under embargo until 2022-10-14 56 This definition can be used by third-party code to compile code conditional 58 Therefore, any third-party code integrated using the Zephyr build system will 91 changed from ``-ENETDOWN`` to ``-ENETUNREACH``. A return value of ``-ENETDOWN`` now indicates 129 * Removed support for configuring the CAN-FD maximum DLC value via Kconfig 156 valid for specific bindings to specify like :dtcompatible:`gpio-leds` and 157 :dtcompatible:`fixed-partitions`. [all …]
|
D | release-notes-3.6.rst | 12 * New :ref:`GNSS subsystem <gnss_api>` added, enabling geo-awareness in Zephyr applications. 13 * New API and drivers introduced for interfacing with :ref:`keyboard matrices <gpio-kbd>`. 16 * Integrated Trusted Firmware-M (TF-M) 2.0, including an update to Mbed TLS 3.5.2. 23 * Over 30 new supported boards, spanning all Zephyr-supported architectures. 37 * CVE-2023-5779 `Zephyr project bug tracker GHSA-7cmj-963q-jj47 38 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-7cmj-963q-jj47>`_ 40 * CVE-2023-6249 `Zephyr project bug tracker GHSA-32f5-3p9h-2rqc 41 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-32f5-3p9h-2rqc>`_ 43 * CVE-2023-6749 `Zephyr project bug tracker GHSA-757h-rw37-66hw 44 <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-757h-rw37-66hw>`_ [all …]
|
D | release-notes-3.3.rst | 14 * 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 …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsl/ |
D | lsm6dsl.c | 1 /* lsm6dsl.c - Driver for LSM6DSL accelerometer, gyroscope and 8 * SPDX-License-Identifier: Apache-2.0 21 #include <zephyr/pm/device.h> 42 return -EINVAL; in lsm6dsl_freq_to_odr_val() 72 return -EINVAL; in lsm6dsl_accel_range_to_fs_val() 90 return -EINVAL; in lsm6dsl_gyro_range_to_fs_val() 96 struct lsm6dsl_data *data = dev->data; in lsm6dsl_reboot() 98 if (data->hw_tf->update_reg(dev, LSM6DSL_REG_CTRL3_C, in lsm6dsl_reboot() 101 return -EIO; in lsm6dsl_reboot() 104 /* Wait sensor turn-on time as per datasheet */ in lsm6dsl_reboot() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor.h | 10 * SPDX-License-Identifier: Apache-2.0 42 * and can be obtained using the formula val1 + val2 * 10^(-6). Negative 47 * -0.5: val1 = 0, val2 = -500000 48 * -1.0: val1 = -1, val2 = 0 49 * -1.5: val1 = -1, val2 = -500000 54 /** Fractional part of the value (in one-millionth parts). */ 101 /** Illuminance in infra-red spectrum, in lux. */ 112 /** 1.0 micro-meters Particulate Matter, in ug/m^3 */ 114 /** 2.5 micro-meters Particulate Matter, in ug/m^3 */ 116 /** 10 micro-meters Particulate Matter, in ug/m^3 */ [all …]
|