/Zephyr-latest/samples/drivers/eeprom/src/ |
D | main.c | 42 struct perisistant_values values; in main() local 52 rc = eeprom_read(eeprom, EEPROM_SAMPLE_OFFSET, &values, sizeof(values)); in main() 58 if (values.magic != EEPROM_SAMPLE_MAGIC) { in main() 59 values.magic = EEPROM_SAMPLE_MAGIC; in main() 60 values.boot_count = 0; in main() 63 values.boot_count++; in main() 64 printk("Device booted %d times.\n", values.boot_count); in main() 66 rc = eeprom_write(eeprom, EEPROM_SAMPLE_OFFSET, &values, sizeof(values)); in main()
|
/Zephyr-latest/include/zephyr/drivers/gpio/ |
D | gpio_emul.h | 57 gpio_port_value_t values); 86 gpio_port_value_t *values); 100 gpio_port_value_t values; in gpio_emul_output_get() local 102 ret = gpio_emul_output_get_masked(port, BIT(pin), &values); in gpio_emul_output_get() 104 ret = (values & BIT(pin)) ? 1 : 0; in gpio_emul_output_get()
|
/Zephyr-latest/tests/drivers/sensor/akm09918c/src/ |
D | main.c | 52 struct sensor_value values[3]; in test_fetch_magnetic_field() local 70 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_MAGN_XYZ, values)); in test_fetch_magnetic_field() 73 actual_ugauss = values[0].val1 * INT64_C(1000000) + values[0].val2; in test_fetch_magnetic_field() 79 actual_ugauss = values[1].val1 * INT64_C(1000000) + values[1].val2; in test_fetch_magnetic_field() 85 actual_ugauss = values[2].val1 * INT64_C(1000000) + values[2].val2; in test_fetch_magnetic_field()
|
/Zephyr-latest/drivers/sensor/infineon/tle9104/ |
D | tle9104_diagnostics.c | 24 result = tle9104_get_diagnostics(config->parent, data->values); in tle9104_diagnostics_sample_fetch() 47 for (size_t i = 0; i < ARRAY_SIZE(data->values); ++i) { in tle9104_diagnostics_channel_get() 48 if (data->values[i].off == TLE9104_OFFDIAG_OL) { in tle9104_diagnostics_channel_get() 54 for (size_t i = 0; i < ARRAY_SIZE(data->values); ++i) { in tle9104_diagnostics_channel_get() 55 if (data->values[i].on == TLE9104_ONDIAG_OCTIME || in tle9104_diagnostics_channel_get() 56 data->values[i].on == TLE9104_ONDIAG_OCOT) { in tle9104_diagnostics_channel_get()
|
D | tle9104_diagnostics.h | 15 struct gpio_tle9104_channel_diagnostics values[TLE9104_GPIO_COUNT]; member
|
/Zephyr-latest/tests/drivers/sensor/icm42688/src/ |
D | main.c | 92 struct sensor_value values[3]; in test_fetch_accel_with_range() local 102 sensor_g_to_ms2(accel_range_g, &values[0]); in test_fetch_accel_with_range() 104 &values[0])); in test_fetch_accel_with_range() 115 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_ACCEL_XYZ, values)); in test_fetch_accel_with_range() 118 actual_ug = sensor_ms2_to_ug(&values[0]); in test_fetch_accel_with_range() 123 actual_ug = sensor_ms2_to_ug(&values[1]); in test_fetch_accel_with_range() 128 actual_ug = sensor_ms2_to_ug(&values[2]); in test_fetch_accel_with_range() 154 struct sensor_value values[3]; in test_fetch_gyro_with_range() local 164 sensor_degrees_to_rad((scale_mdps / 1000) + (scale_mdps % 1000 == 0 ? 0 : 1), &values[0]); in test_fetch_gyro_with_range() 166 &values[0])); in test_fetch_gyro_with_range() [all …]
|
/Zephyr-latest/tests/boards/vmu_rt1170/icm42688/src/ |
D | main.c | 68 double x = q31_to_double(data->readings[0].values[0], data->shift); in callback() 69 double y = q31_to_double(data->readings[0].values[1], data->shift); in callback() 70 double z = q31_to_double(data->readings[0].values[2], data->shift); in callback() 79 double x = q31_to_double(data->readings[0].values[0], data->shift); in callback() 80 double y = q31_to_double(data->readings[0].values[1], data->shift); in callback() 81 double z = q31_to_double(data->readings[0].values[2], data->shift); in callback()
|
/Zephyr-latest/tests/drivers/sensor/bmi160/src/ |
D | fixture.c | 18 } values[] = { in sensor_bmi160_setup_emulator() local 35 for (size_t i = 0; i < ARRAY_SIZE(values); ++i) { in sensor_bmi160_setup_emulator() 36 struct sensor_chan_spec chan_spec = {.chan_type = values[i].channel, .chan_idx = 0}; in sensor_bmi160_setup_emulator() 39 &values[i].value, 3)); in sensor_bmi160_setup_emulator()
|
/Zephyr-latest/samples/bluetooth/peripheral_ht/ |
D | README.rst | 5 Expose a Health Thermometer (HT) GATT Service generating dummy temperature values. 14 die temperature values. On other boards, it will generate dummy temperature 15 values.
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_emul.c | 185 gpio_port_value_t values, in gpio_emul_gen_interrupt_bits() argument 198 ++i, mask >>= 1, prev_values >>= 1, values >>= 1) { in gpio_emul_gen_interrupt_bits() 204 bit = ((values & 1) != 0); in gpio_emul_gen_interrupt_bits() 273 gpio_port_value_t values) in gpio_emul_pend_interrupt() argument 281 gpio_emul_gen_interrupt_bits(port, mask, prev_values, values, in gpio_emul_pend_interrupt() 289 gpio_emul_gen_interrupt_bits(port, mask, prev_values, values, in gpio_emul_pend_interrupt() 298 gpio_port_value_t values) in gpio_emul_input_set_masked_int() argument 326 drv_data->input_vals |= values & mask; in gpio_emul_input_set_masked_int() 333 gpio_port_value_t values) in gpio_emul_input_set_masked() argument 343 rv = gpio_emul_input_set_masked_int(port, mask, values); in gpio_emul_input_set_masked() [all …]
|
D | gpio_si32.c | 219 const uint32_t values = SI32_PBSTD_A_read_pins(config->base); in gpio_si32_irq_handler() local 225 const uint32_t pins_not_at_trigger_value = (pm ^ values) & pmen; in gpio_si32_irq_handler() 233 const uint32_t changed_pins = (values ^ data->pin_values) & pmen; in gpio_si32_irq_handler() 235 data->pin_values = values; in gpio_si32_irq_handler() 242 (values & changed_pins) & data->trig_high; in gpio_si32_irq_handler() 244 ((~values) & changed_pins) & data->trig_low; in gpio_si32_irq_handler()
|
/Zephyr-latest/tests/drivers/build_all/sensor/ |
D | Kconfig | 13 int "Number of expected values to use in test" 17 Controls the number of expected values to use in the generic sensor 21 sensor range is 0..100, the test will run 5 times with expected values
|
/Zephyr-latest/drivers/sensor/ |
D | default_rtio_sensor.c | 408 static int get_q31_value(const struct sensor_data_generic_header *header, const q31_t *values, in get_q31_value() argument 413 *out = values[i]; in get_q31_value() 420 static int decode_three_axis(const struct sensor_data_generic_header *header, const q31_t *values, in decode_three_axis() argument 431 rc = get_q31_value(header, values, (struct sensor_chan_spec){x, channel_idx}, in decode_three_axis() 432 &data_out->readings[0].values[0]); in decode_three_axis() 436 rc = get_q31_value(header, values, (struct sensor_chan_spec){y, channel_idx}, in decode_three_axis() 437 &data_out->readings[0].values[1]); in decode_three_axis() 441 rc = get_q31_value(header, values, (struct sensor_chan_spec){z, channel_idx}, in decode_three_axis() 442 &data_out->readings[0].values[2]); in decode_three_axis() 449 static int decode_q31(const struct sensor_data_generic_header *header, const q31_t *values, in decode_q31() argument [all …]
|
D | sensor_shell.c | 331 int64_t values[3]; in sensor_shell_processing_callback() member 407 accumulator_buffer.values[0] += data->readings[0].values[0]; in sensor_shell_processing_callback() 408 accumulator_buffer.values[1] += data->readings[0].values[1]; in sensor_shell_processing_callback() 409 accumulator_buffer.values[2] += data->readings[0].values[2]; in sensor_shell_processing_callback() 423 accumulator_buffer.values[0] += data->readings[0].is_near; in sensor_shell_processing_callback() 438 accumulator_buffer.values[0] += data->readings[0].value; in sensor_shell_processing_callback() 460 data->readings[0].values[0] = (q31_t)(accumulator_buffer.values[0] / in sensor_shell_processing_callback() 462 data->readings[0].values[1] = (q31_t)(accumulator_buffer.values[1] / in sensor_shell_processing_callback() 464 data->readings[0].values[2] = (q31_t)(accumulator_buffer.values[2] / in sensor_shell_processing_callback() 485 accumulator_buffer.values[0] / accumulator_buffer.count; in sensor_shell_processing_callback() [all …]
|
/Zephyr-latest/samples/boards/st/ccm/ |
D | README.rst | 18 values take up space in the FLASH image. 64 Checking initial variable values: ... PASSED 66 Initial variable values: 77 Variable values after writing: 94 values shown above. 110 Checking initial variable values: ... PASSED 112 Initial variable values: 123 Variable values after writing: 138 values from the last write. It is important to notice that this is not guaranteed,
|
/Zephyr-latest/scripts/west_commands/zspdx/ |
D | scanner.py | 113 for f in pkg.files.values(): 147 for f in pkg.files.values(): 191 for pkg in doc.pkgs.values(): 195 for f in pkg.files.values():
|
/Zephyr-latest/doc/kernel/services/data_passing/ |
D | stacks.rst | 8 to add and remove a limited number of integer data values. 22 * A **queue** of integer data values that have been added but not yet removed. 23 The queue is implemented using an array of stack_data_t values 28 * A **maximum quantity** of data values that can be queued in the array. 39 its maximum quantity of queued values. Adding a data value to a stack that is 65 up to ten word-sized data values. 80 that the macro defines both the stack and its array of data values. 129 Use a stack to store and retrieve integer data values in a "last in,
|
/Zephyr-latest/subsys/sensing/ |
D | Kconfig | 45 Typical values are 6 53 Typical values are 4096 68 Typical values are 9 76 Typical values are 1024 86 Typical values are 8
|
/Zephyr-latest/ |
D | version.h.in | 4 /* The template values come from cmake/version.cmake 5 * BUILD_VERSION related template values will be 'git describe',
|
/Zephyr-latest/samples/bluetooth/peripheral_hr/ |
D | README.rst | 5 Expose a Heart Rate (HR) GATT Service generating dummy heart-rate values. 12 connects it will generate dummy heart-rate values.
|
/Zephyr-latest/samples/sensor/amg88xx/ |
D | README.rst | 11 the AMG88XX sensor and displays its values to the serial console. 24 Sample shows values in |deg| C multiplied by 100.
|
/Zephyr-latest/include/zephyr/drivers/ |
D | sensor_attribute_types.h | 35 q31_t values[3]; member
|
/Zephyr-latest/include/zephyr/drivers/mfd/ |
D | bd8lb600fs.h | 29 int mfd_bd8lb600fs_set_outputs(const struct device *dev, uint32_t values);
|
/Zephyr-latest/tests/drivers/pwm/pwm_gpio_loopback/ |
D | Kconfig | 27 Maximum allowed deviation (%) from the programmed values for the test to be 29 can deviate by up to 5% from the programmed values for the test to pass.
|
/Zephyr-latest/drivers/sensor/bosch/bmm150/ |
D | bmm150_trigger.c | 84 uint16_t values[BMM150_AXIS_XYZR_MAX]; in bmm150_trigger_set() local 113 if (cfg->bus_io->read(&cfg->bus, BMM150_REG_X_L, (uint8_t *)values, sizeof(values)) < 0) { in bmm150_trigger_set()
|