/Zephyr-Core-3.5.0/dts/bindings/sensor/ |
D | st,iis2dlpc-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 include: sensor-device.yaml 7 drdy-gpios: 8 type: phandle-array 16 drdy-int: 20 - 1 # drdy is generated from INT1 21 - 2 # drdy is generated from INT2 27 configuration at power-up. 32 description: Range in g. Default is power-up configuration. 34 - 16 # 16g (1.952 mg/LSB) [all …]
|
D | st,lis2dw12-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 include: sensor-device.yaml 7 irq-gpios: 8 type: phandle-array 16 int-pin: 20 - 1 21 - 2 31 configuration at power-up. 37 Range in g. Default is power-up configuration. 45 - 16 [all …]
|
D | nxp,fxos8700-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 4 description: FXOS8700 6-axis accelerometer/magnetometer sensor 6 include: sensor-device.yaml 9 reset-gpios: 10 type: phandle-array 17 int1-gpios: 18 type: phandle-array 25 int2-gpios: 26 type: phandle-array 38 - 8 # 8g (0.976 mg/LSB) [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/adxl372/ |
D | adxl372.h | 4 * SPDX-License-Identifier: Apache-2.0 36 #define ADXL372_X_DATA_H 0x08u /* X-axis acceleration data [11:4] */ 37 #define ADXL372_X_DATA_L 0x09u /* X-axis acceleration data [3:0] */ 38 #define ADXL372_Y_DATA_H 0x0Au /* Y-axis acceleration data [11:4] */ 39 #define ADXL372_Y_DATA_L 0x0Bu /* Y-axis acceleration data [3:0] */ 40 #define ADXL372_Z_DATA_H 0x0Cu /* Z-axis acceleration data [11:4] */ 41 #define ADXL372_Z_DATA_L 0x0Du /* Z-axis acceleration data [3:0] */ 42 #define ADXL372_X_MAXPEAK_H 0x15u /* X-axis MaxPeak acceleration data */ 43 #define ADXL372_X_MAXPEAK_L 0x16u /* X-axis MaxPeak acceleration data */ 44 #define ADXL372_Y_MAXPEAK_H 0x17u /* Y-axis MaxPeak acceleration data */ [all …]
|
D | adxl372.c | 4 * SPDX-License-Identifier: Apache-2.0 24 * Set the threshold for activity detection for a single axis 25 * @param dev - The device structure. 26 * @param axis_reg_h - The high part of the activity register. 27 * @param act - The activity config structure. 36 struct adxl372_data *data = dev->data; in adxl372_set_activity_threshold() 38 ret = data->hw_tf->write_reg(dev, axis_reg_h++, act->thresh >> 3); in adxl372_set_activity_threshold() 47 val = (act->thresh << 5) | (act->referenced << 1) | act->enable; in adxl372_set_activity_threshold() 50 val = (act->thresh << 5) | act->enable; in adxl372_set_activity_threshold() 53 return data->hw_tf->write_reg(dev, axis_reg_h, val); in adxl372_set_activity_threshold() [all …]
|
/Zephyr-Core-3.5.0/dts/bindings/input/ |
D | xptek,xpt2046.yaml | 2 # SPDX-License-Identifier: Apache-2.0 7 include: spi-device.yaml 10 int-gpios: 11 type: phandle-array 15 touchscreen-size-x: 20 touchscreen-size-y: 25 min-x: 30 min-y: 35 max-x: 40 max-y: [all …]
|
/Zephyr-Core-3.5.0/samples/sensor/mcux_acmp/ |
D | sample.yaml | 6 - twr_ke18f 7 - mimxrt1170_evk_cm7 8 - mimxrt1170_evk_cm4 10 - twr_ke18f 12 - drivers 13 - sensor 21 - "Adjust ACMP input voltage by turning the potentiometer" 22 - "ACMP input [a-z]* threshold" 26 - CONFIG_MCUX_ACMP_TRIGGER=n
|
/Zephyr-Core-3.5.0/samples/net/gptp/ |
D | docker-test.sh | 2 # SPDX-License-Identifier: Apache-2.0 4 if [ -z "$RUNNING_FROM_MAIN_SCRIPT" ]; then 6 echo "Run $ZEPHYR_BASE/scripts/net/run-sample-tests.sh instead." 14 "/usr/local/sbin/ptp4l -2 -f /etc/gptp.cfg -m -q -l 6 -S -i eth0" \ 17 # For native_posix gPTP run, the delay threshold needs to be huge 18 start_zephyr "$overlay" "-DCONFIG_NET_SAMPLE_RUN_DURATION=10" \ 19 "-DCONFIG_NET_GPTP_NEIGHBOR_PROP_DELAY_THR=12000000" 24 if [ $gptp_result -eq 1 -o $gptp_result -eq 2 ]; then
|
/Zephyr-Core-3.5.0/samples/sensor/fxos8700/src/ |
D | main.c | 5 * SPDX-License-Identifier: Apache-2.0 38 printf("Device %s is not ready\n", dev->name); in main() 58 printk("Could not set slope threshold\n"); in main() 87 /* Print accel x,y,z data */ in main() 96 /* Print mag x,y,z data */ in main() 106 /* Print accel x,y,z and mag x,y,z data */ in main()
|
/Zephyr-Core-3.5.0/drivers/input/ |
D | input_xpt2046.c | 4 * SPDX-License-Identifier: Apache-2.0 23 uint16_t threshold; member 53 uint32_t z; member 64 /* Read all Z1, X, Y, Z2 channels using 16 Clocks-per-Conversion mode. 65 * See the manual https://www.waveshare.com/w/upload/9/98/XPT2046-EN.pdf for details. 66 * Each follow-up command interleaves with previous conversion. 79 const struct xpt2046_config *config = data->dev->config; in xpt2046_isr_handler() 81 gpio_remove_callback(config->int_gpio.port, &data->int_gpio_cb); in xpt2046_isr_handler() 82 k_work_submit(&data->work); in xpt2046_isr_handler() 95 uint8_t *buf = rx->buffers->buf; in xpt2046_read_and_cumulate() [all …]
|
D | input_stmpe811.c | 3 * SPDX-License-Identifier: Apache-2.0 62 #define STMPE811_INT_BIT_FIFO_THRESHOLD BIT(1) /* FIFO above threshold interrupt */ 83 * - bits [1-3] X, Y only acquisition mode 88 * Analog-to-digital Converter 90 * - bit [3] selects 12 bit ADC 91 * - bits [4-6] select ADC conversion time = 80 98 * - 00 : 1.625 MHz 99 * - 01 : 3.25 MHz 100 * - 10 : 6.5 MHz 101 * - 11 : 6.5 MHz [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/lis2dw12/ |
D | lis2dw12_trigger.c | 1 /* ST Microelectronics LIS2DW12 3-axis accelerometer driver 5 * SPDX-License-Identifier: Apache-2.0 23 * lis2dw12_enable_int - enable selected int pin to generate interrupt 28 const struct lis2dw12_device_config *cfg = dev->config; in lis2dw12_enable_int() 29 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in lis2dw12_enable_int() 34 if (cfg->int_pin == 1) { in lis2dw12_enable_int() 88 * gravitional force for configured duration and threshold. in lis2dw12_enable_int() 89 * The duration and the threshold can be configured in the in lis2dw12_enable_int() 102 return -ENOTSUP; in lis2dw12_enable_int() 107 * lis2dw12_trigger_set - link external trigger to event data ready [all …]
|
/Zephyr-Core-3.5.0/samples/sensor/bmg160/src/ |
D | main.c | 4 * SPDX-License-Identifier: Apache-2.0 33 printf("Gyro (rad/s): X=%f, Y=%f, Z=%f\n", in print_gyro_data() 68 remaining_test_time -= SLEEPTIME; in test_polling_mode() 75 if (trigger->type != SENSOR_TRIG_DATA_READY && in trigger_handler() 76 trigger->type != SENSOR_TRIG_DELTA) { in trigger_handler() 101 /* set slope threshold to 10 dps */ in test_trigger_mode() 107 printf("Gyro: cannot set slope threshold.\n"); in test_trigger_mode() 129 remaining_test_time -= SLEEPTIME; in test_trigger_mode() 162 remaining_test_time -= SLEEPTIME; in test_trigger_mode() 181 printf("Device %s is not ready.\n", bmg160->name); in main() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/adxl362/ |
D | adxl362.c | 1 /* adxl362.c - ADXL362 Three-Axis Digital Accelerometers */ 6 * SPDX-License-Identifier: Apache-2.0 29 const struct adxl362_config *cfg = dev->config; in adxl362_reg_access() 53 return spi_transceive_dt(&cfg->bus, &tx, &rx); in adxl362_reg_access() 58 return spi_write_dt(&cfg->bus, &tx); in adxl362_reg_access() 162 return -EINVAL; in adxl362_freq_to_odr_val() 173 return -EINVAL; in adxl362_freq_to_odr_val() 197 return -EINVAL; in adxl362_range_to_reg_val() 203 struct adxl362_data *adxl362_data = dev->data; in adxl362_set_range() 220 adxl362_data->selected_range = range; in adxl362_set_range() [all …]
|
/Zephyr-Core-3.5.0/drivers/sensor/iis2dlpc/ |
D | iis2dlpc.c | 1 /* ST Microelectronics IIS2DLPC 3-axis accelerometer driver 5 * SPDX-License-Identifier: Apache-2.0 30 * iis2dlpc_set_range - set full scale range for acc 37 struct iis2dlpc_data *iis2dlpc = dev->data; in iis2dlpc_set_range() 38 const struct iis2dlpc_config *cfg = dev->config; in iis2dlpc_set_range() 39 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in iis2dlpc_set_range() 44 if (cfg->pm == IIS2DLPC_CONT_LOW_PWR_12bit) { in iis2dlpc_set_range() 50 iis2dlpc->gain = IIS2DLPC_FS_TO_GAIN(fs, shift_gain); in iis2dlpc_set_range() 57 * iis2dlpc_set_odr - set new sampling frequency 63 const struct iis2dlpc_config *cfg = dev->config; in iis2dlpc_set_odr() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/drivers/ |
D | sensor.h | 10 * SPDX-License-Identifier: Apache-2.0 40 * and can be obtained using the formula val1 + val2 * 10^(-6). Negative 45 * -0.5: val1 = 0, val2 = -500000 46 * -1.0: val1 = -1, val2 = 0 47 * -1.5: val1 = -1, val2 = -500000 52 /** Fractional part of the value (in one-millionth parts). */ 64 /** Acceleration on the Z axis, in m/s^2. */ 66 /** Acceleration on the X, Y and Z axes. */ 72 /** Angular velocity around the Z axis, in radians/s. */ 74 /** Angular velocity around the X, Y and Z axes. */ [all …]
|
/Zephyr-Core-3.5.0/scripts/pylib/twister/twisterlib/ |
D | environment.py | 6 # SPDX-License-Identifier: Apache-2.0 42 …ckages = [pkg.project_name for pkg in pkg_resources.working_set] # pylint: disable=not-an-iterable 43 PYTEST_PLUGIN_INSTALLED = 'pytest-twister-harness' in installed_packages 57 $ ./scripts/twister -v \\ 58 --testsuite-root tests/ztest/base \\ 59 --testsuite-root tests/kernel \\ 60 --test tests/ztest/base/testing.ztest.verbose_0 \\ 61 --test tests/kernel/fifo/fifo_api/kernel.fifo 73 device = parser.add_mutually_exclusive_group(required="--device-testing" in sys.argv) 84 "-E", [all …]
|
/Zephyr-Core-3.5.0/doc/releases/ |
D | release-notes-1.6.rst | 7 release introduces the unified Kernel replacing the separate nano- and 8 micro-kernels and simplifying the overall Zephyr architecture and programming 10 Support for the ARM Cortex-M0/M0+ family was added and board support for 11 Cortex-M was expanded. 22 * Added support for several ARM Cortex-M boards 34 * Added DLIST to operate in all elements of a doubly-linked list. 52 * ARM: Added support for ARM Cortex-M0/M0+. 55 * x86: Changed IRQ controller to return -1 if cannot determine source vector. 99 * Added raw HCI API to enable physical HCI transport for a Controller-only build. 101 * Added cross-transport pairing support for the Security Manager Protocol. [all …]
|