/Zephyr-latest/dts/bindings/sensor/ |
D | st,iis2dlpc-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/dt-bindings/sensor/iis2dlpc.h> 14 tap-mode = <IIS2DLPC_DT_SINGLE_DOUBLE_TAP>; 15 power-mode = <IIS2DLPC_DT_HP_MODE>; 18 include: sensor-device.yaml 21 drdy-gpios: 22 type: phandle-array 30 drdy-int: 40 configuration at power-up. 42 - 1 # drdy is generated from INT1 [all …]
|
D | st,lis2dw12-common.yaml | 2 # SPDX-License-Identifier: Apache-2.0 9 #include <zephyr/dt-bindings/sensor/lis2dw12.h> 14 wakeup-duration = <LIS2DW12_DT_WAKEUP_4_ODR>; 15 ff-threshold = <LIS2DW12_DT_FF_THRESHOLD_500_mg>; 16 tap-mode = <LIS2DW12_DT_SINGLE_DOUBLE_TAP>; 17 power-mode = <LIS2DW12_DT_HP_MODE>; 18 bw-filt = <LIS2DW12_DT_FILTER_BW_ODR_DIV_2>; 21 include: sensor-device.yaml 24 irq-gpios: 25 type: phandle-array [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-latest/drivers/sensor/adi/adxl372/ |
D | adxl372.h | 4 * SPDX-License-Identifier: Apache-2.0 42 #define ADXL372_X_DATA_H 0x08u /* X-axis acceleration data [11:4] */ 43 #define ADXL372_X_DATA_L 0x09u /* X-axis acceleration data [3:0] */ 44 #define ADXL372_Y_DATA_H 0x0Au /* Y-axis acceleration data [11:4] */ 45 #define ADXL372_Y_DATA_L 0x0Bu /* Y-axis acceleration data [3:0] */ 46 #define ADXL372_Z_DATA_H 0x0Cu /* Z-axis acceleration data [11:4] */ 47 #define ADXL372_Z_DATA_L 0x0Du /* Z-axis acceleration data [3:0] */ 48 #define ADXL372_X_MAXPEAK_H 0x15u /* X-axis MaxPeak acceleration data */ 49 #define ADXL372_X_MAXPEAK_L 0x16u /* X-axis MaxPeak acceleration data */ 50 #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-latest/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-latest/samples/sensor/mcux_lpcmp/ |
D | sample.yaml | 6 - frdm_mcxn947/mcxn947/cpu0 7 - frdm_mcxn236 8 - frdm_mcxa156 10 - frdm_mcxn947/mcxn947/cpu0 11 - frdm_mcxn236 13 - drivers 14 - sensor 22 - "LPCMP input [a-z]* threshold" 26 - CONFIG_MCUX_LPCMP_TRIGGER=n
|
/Zephyr-latest/samples/sensor/mcux_acmp/ |
D | sample.yaml | 6 - twr_ke18f 7 - mimxrt1170_evk/mimxrt1176/cm7 8 - mimxrt1170_evk/mimxrt1176/cm4 9 - frdm_ke17z 10 - frdm_ke17z512 11 - mimxrt1180_evk/mimxrt1189/cm33 12 - mimxrt1180_evk/mimxrt1189/cm7 14 - twr_ke18f 16 - drivers 17 - sensor [all …]
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367.h | 4 * 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 …]
|
D | adxl367.c | 4 * SPDX-License-Identifier: Apache-2.0 29 * @param dev - The device structure. 30 * @param th - Structure holding the activity threshold information: 33 * Set Threshold value 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() [all …]
|
/Zephyr-latest/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_sim 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-latest/samples/net/ptp/ |
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 -4 -f /etc/gptp.cfg -m -q -l 6 -S -i eth0" \ 17 # For native_sim PTP run, the delay threshold needs to be huge 18 start_zephyr "$overlay" "-DCONFIG_NET_SAMPLE_RUN_DURATION=15" \ 23 if [ $ptp_result -eq 1 -o $ptp_result -eq 2 ]; then
|
/Zephyr-latest/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 63 #define STMPE811_INT_BIT_FIFO_THRESHOLD BIT(1) /* FIFO above threshold interrupt */ 84 * - bits [1-3] X, Y only acquisition mode 89 * Analog-to-digital Converter 91 * - bit [3] selects 12 bit ADC 92 * - bits [4-6] select ADC conversion time = 80 99 * - 00 : 1.625 MHz 100 * - 01 : 3.25 MHz 101 * - 10 : 6.5 MHz 102 * - 11 : 6.5 MHz [all …]
|
/Zephyr-latest/samples/sensor/tdk_apex/ |
D | README.rst | 1 .. zephyr:code-sample:: tdk_apex 3 :relevant-api: sensor_interface 17 ** Wake on Motion (WoM): Detects motion per axis exceeding 195 mg threshold. 25 …- https://invensense.tdk.com/download-pdf/an-000271-icm-42607x-and-icm-42670x-apex-motion-function… 44 to be aliased as ``tdk-apex-sensorN`` where ``N`` goes from ``0`` to ``9``. For example: 46 .. code-block:: devicetree 50 tdk-apex-sensor0 = &icm42670p; 56 .. code-block:: devicetree 64 .. zephyr-app-commands:: 65 :zephyr-app: samples/sensor/tdk_apex [all …]
|
/Zephyr-latest/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-latest/drivers/sensor/st/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() 103 * gravitional force for configured duration and threshold. in lis2dw12_enable_int() 104 * The duration and the threshold can be configured in the in lis2dw12_enable_int() 117 return -ENOTSUP; in lis2dw12_enable_int() 122 * lis2dw12_trigger_set - link external trigger to event data ready [all …]
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_decoder.c | 1 /* 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) 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() 146 return -ENOTSUP; in lsm6dsv16x_decoder_get_frame_count() [all …]
|
/Zephyr-latest/drivers/sensor/adi/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-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). */ 66 /** Acceleration on the Z axis, in m/s^2. */ 68 /** Acceleration on the X, Y and Z axes. */ 74 /** Angular velocity around the Z axis, in radians/s. */ 76 /** Angular velocity around the X, Y and Z axes. */ [all …]
|
/Zephyr-latest/drivers/sensor/st/iis2dlpc/ |
D | iis2dlpc.c | 1 /* ST Microelectronics IIS2DLPC 3-axis accelerometer driver 5 * SPDX-License-Identifier: Apache-2.0 29 * iis2dlpc_set_range - set full scale range for acc 36 struct iis2dlpc_data *iis2dlpc = dev->data; in iis2dlpc_set_range() 37 const struct iis2dlpc_config *cfg = dev->config; in iis2dlpc_set_range() 38 stmdev_ctx_t *ctx = (stmdev_ctx_t *)&cfg->ctx; in iis2dlpc_set_range() 43 if (cfg->pm == IIS2DLPC_CONT_LOW_PWR_12bit) { in iis2dlpc_set_range() 49 iis2dlpc->gain = IIS2DLPC_FS_TO_GAIN(fs, shift_gain); in iis2dlpc_set_range() 56 * iis2dlpc_set_odr - set new sampling frequency 62 const struct iis2dlpc_config *cfg = dev->config; in iis2dlpc_set_odr() [all …]
|
/Zephyr-latest/scripts/west_commands/completion/ |
D | west-completion.bash | 1 # Bash auto-completion for west subcommands and flags. To initialize, run 3 # source west-completion.bash 7 __west_previous_extglob_setting=$(shopt -p extglob) 8 shopt -s extglob 12 # bash_completion - programmable completion functions for bash 3.2+ 14 # Copyright © 2006-2008, Ian Macdonald <ian@caliban.org> 15 # © 2009-2010, Bash Completion Maintainers 16 # <bash-completion-devel@lists.alioth.debian.org> 33 # http://bash-completion.alioth.debian.org/ 41 # if test "${words_[cword_-1]}" = -w [all …]
|
/Zephyr-latest/scripts/pylib/twister/twisterlib/ |
D | environment.py | 4 # Copyright (c) 2018-2024 Intel Corporation 8 # SPDX-License-Identifier: Apache-2.0 45 def _get_installed_packages() -> Generator[str, None, None]: 63 PYTEST_PLUGIN_INSTALLED = 'pytest-twister-harness' in installed_packages 71 def add_parse_arguments(parser = None) -> argparse.ArgumentParser: 82 $ ./scripts/twister -v \\ 83 --testsuite-root tests/ztest/base \\ 84 --testsuite-root tests/kernel \\ 85 --test tests/ztest/base/testing.ztest.verbose_0 \\ 86 --test tests/kernel/fifo/fifo_api/kernel.fifo [all …]
|
/Zephyr-latest/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 …]
|
/Zephyr-latest/subsys/net/l2/wifi/ |
D | wifi_shell.c | 5 * SPDX-License-Identifier: Apache-2.0 45 #include <wifi_enterprise_test_certs/client-key.pem.inc> 58 #include <wifi_enterprise_test_certs/client-key2.pem.inc> 67 #include <wifi_enterprise_test_certs/server-key.pem.inc> 143 return -1; in cmd_wifi_set_enterprise_creds() 171 PR_WARNING("%s value out of range: %s, (%ld-%ld)\n", in parse_number() 174 PR_WARNING("Value out of range: %s, (%ld-%ld)\n", in parse_number() 186 (const struct wifi_scan_result *)cb->info; in handle_wifi_scan_result() 194 PR("\n%-4s | %-32s %-5s | %-13s | %-4s | %-15s | %-17s | %-8s\n", in handle_wifi_scan_result() 198 strncpy(ssid_print, entry->ssid, sizeof(ssid_print) - 1); in handle_wifi_scan_result() [all …]
|