| /samples/sensor/vl53l0x/src/ |
| A D | main.c | 16 struct sensor_value value; in main() local 31 ret = sensor_channel_get(dev, SENSOR_CHAN_PROX, &value); in main() 32 printk("prox is %d\n", value.val1); in main() 34 ret = sensor_channel_get(dev, SENSOR_CHAN_DISTANCE, &value); in main() 35 printk("distance is %.3lld mm\n", sensor_value_to_milli(&value)); in main() 38 printk("Max distance is %.3lld mm\n", sensor_value_to_milli(&value)); in main() 41 printk("Signal rate is %d Cps\n", value.val1); in main() 44 printk("Ambient rate is %d Cps\n", value.val1); in main() 47 printk("SPADs used: %d\n", value.val1); in main() 50 if (value.val1 == VL53L0X_RANGE_STATUS_RANGE_VALID) { in main() [all …]
|
| /samples/drivers/mbox_data/ |
| A D | sample.yaml | 17 - "Client received .+ value: 1" 18 - "Client send .+ value: 2" 19 - "Client received .+ value: 3" 20 - "Client send .+ value: 4" 21 - "Client received .+ value: 41" 22 - "Client send .+ value: 42" 23 - "Client received .+ value: 97" 24 - "Client send .+ value: 98" 25 - "Client received .+ value: 99"
|
| A D | README.rst | 75 Client send (on channel 3) value: 0 77 Client send (on channel 3) value: 2 79 Client send (on channel 3) value: 4 82 Client send (on channel 3) value: 96 84 Client send (on channel 3) value: 98 93 Server receive (on channel 3) value: 0 94 Server send (on channel 2) value: 1 96 Server send (on channel 2) value: 3 99 Server send (on channel 2) value: 95 101 Server send (on channel 2) value: 97 [all …]
|
| /samples/boards/st/backup_sram/src/ |
| A D | main.c | 18 uint32_t value; member 36 backup.value = 0; in main() 40 printk("Current value in backup SRAM (%p): %d\n", &backup.value, backup.value); in main() 42 backup.value++; in main() 47 printk("Next reported value should be: %d\n", backup.value); in main()
|
| /samples/sensor/bq274xx/src/ |
| A D | main.c | 12 static void bq274xx_show_values(const char *type, struct sensor_value value) in bq274xx_show_values() argument 14 if ((value.val2 < 0) && (value.val1 >= 0)) { in bq274xx_show_values() 15 value.val2 = -(value.val2); in bq274xx_show_values() 16 printk("%s: -%d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values() 17 } else if ((value.val2 > 0) && (value.val1 < 0)) { in bq274xx_show_values() 18 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values() 19 } else if ((value.val2 < 0) && (value.val1 < 0)) { in bq274xx_show_values() 20 value.val2 = -(value.val2); in bq274xx_show_values() 21 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values() 23 printk("%s: %d.%06d\n", type, value.val1, value.val2); in bq274xx_show_values()
|
| /samples/sensor/thermometer/src/ |
| A D | main.c | 36 struct sensor_value value; in temp_alert_handler() local 40 ret = read_temperature(dev, &value); in temp_alert_handler() 45 temp = sensor_value_to_double(&value); in temp_alert_handler() 58 struct sensor_value value; in main() local 76 ret = read_temperature(dev, &value); in main() 81 temp = sensor_value_to_double(&value); in main() 85 ret = sensor_value_from_double(&value, low_temp); in main() 91 SENSOR_ATTR_LOWER_THRESH, &value); in main() 98 ret = sensor_value_from_double(&value, high_temp); in main() 104 SENSOR_ATTR_UPPER_THRESH, &value); in main() [all …]
|
| /samples/data_structures/min-heap/src/ |
| A D | main.c | 13 int value; member 47 { .key = 10, .value = 100 }, in main() 48 { .key = 5, .value = 200 }, in main() 49 { .key = 30, .value = 300 }, in main() 50 { .key = 2, .value = 400 }, in main() 63 printk("key=%d value=%d\n", d->key, d->value); in main() 69 printk("key=%d value=%d\n", top->key, top->value); in main() 83 printk("key=%d value=%d\n", d->key, d->value); in main()
|
| /samples/sensor/co2_polling/src/ |
| A D | main.c | 15 struct sensor_value value; in main() local 25 sensor_channel_get(dev, SENSOR_CHAN_CO2, &value) == 0) { in main() 26 LOG_INF("CO2 %d ppm", value.val1); in main()
|
| /samples/net/virtual/ |
| A D | Kconfig | 11 The value depends on your network setup. 16 The value depends on your network setup. 22 Static netmask to use if not overridden by DHCP. Use empty value to 23 skip setting static value. 28 The value depends on your network setup. 33 The value depends on your network setup. 39 Static netmask to use if not overridden by DHCP. Use empty value to 40 skip setting static value.
|
| /samples/drivers/video/capture_to_lvgl/ |
| A D | Kconfig | 11 int "Crop area left value" 14 Left value of the crop area within the video source. 17 int "Crop area top value" 20 Top value of the crop area within the video source. 23 int "Crop area width value" 26 Width value of the crop area within the video source. 30 int "Crop area height value" 33 Height value of the crop area within the video source.
|
| /samples/bluetooth/classic/handsfree/src/ |
| A D | main.c | 42 static void hf_service(struct bt_hfp_hf *hf, uint32_t value) in hf_service() argument 44 printk("Service indicator value: %u\n", value); in hf_service() 82 static void hf_signal(struct bt_hfp_hf *hf, uint32_t value) in hf_signal() argument 84 printk("Signal indicator value: %u\n", value); in hf_signal() 87 static void hf_roam(struct bt_hfp_hf *hf, uint32_t value) in hf_roam() argument 89 printk("Roaming indicator value: %u\n", value); in hf_roam() 92 static void hf_battery(struct bt_hfp_hf *hf, uint32_t value) in hf_battery() argument 94 printk("Battery indicator value: %u\n", value); in hf_battery()
|
| /samples/arch/mpu/mpu_test/ |
| A D | test_shell.yml | 2 expected: "The value is: 0x.*" 4 expected: "The value is: 0x.*"
|
| /samples/sensor/mpr/ |
| A D | README.rst | 42 pressure value: 101.976303 kPa 43 pressure value: 101.986024 kPa 44 pressure value: 101.989736 kPa 45 pressure value: 101.987424 kPa 46 pressure value: 101.992099 kPa 47 pressure value: 101.989171 kPa 48 pressure value: 101.984226 kPa
|
| /samples/data_structures/min-heap/ |
| A D | README.rst | 37 key=2 value=400 38 key=5 value=200 39 key=30 value=300 40 key=10 value=100 41 Top of heap: key=2 value=400 44 key=2 value=400 45 key=10 value=100 46 key=30 value=300
|
| /samples/boards/st/ccm/ |
| A D | README.rst | 67 ccm_data_var_8 addr: 0x10000014 value: 0x12 68 ccm_data_var_16 addr: 0x10000016 value: 0x3456 70 ccm_data_array addr: 0x1000001c size: 5 value: 72 ccm_bss_array addr: 0x10000000 size: 7 value: 78 ccm_data_var_8 addr: 0x10000014 value: 0xed 79 ccm_data_var_16 addr: 0x10000016 value: 0xcba9 83 ccm_bss_array addr: 0x10000000 size: 7 value: 113 ccm_data_var_8 addr: 0x10000014 value: 0x12 118 ccm_bss_array addr: 0x10000000 size: 7 value: 124 ccm_data_var_8 addr: 0x10000014 value: 0xed [all …]
|
| /samples/arch/mpu/mpu_test/src/ |
| A D | main.c | 56 uint32_t value[2]; in cmd_write_mcux() local 61 value[0] = 0xBADC0DE; in cmd_write_mcux() 62 value[1] = 0xBADC0DE; in cmd_write_mcux() 66 if (flash_write(flash_dev, offset, value, in cmd_write_mcux() 67 sizeof(value)) != 0) { in cmd_write_mcux() 83 uint32_t value = 0xBADC0DE; in cmd_write_stm32() local 87 if (flash_write(flash_dev, offset, &value, sizeof(value)) != 0) { in cmd_write_stm32()
|
| /samples/drivers/video/capture/ |
| A D | Kconfig | 9 int "Crop area left value" 12 Left value of the crop area within the video source. 15 int "Crop area top value" 18 Top value of the crop area within the video source. 21 int "Crop area width value" 24 Width value of the crop area within the video source. 28 int "Crop area height value" 31 Height value of the crop area within the video source.
|
| /samples/bluetooth/peripheral/src/ |
| A D | main.c | 56 strlen(value)); in read_vnd() 63 uint8_t *value = attr->user_data; in write_vnd() local 69 memcpy(value + offset, buf, len); in write_vnd() 70 value[offset + len] = 0; in write_vnd() 110 uint8_t *value = attr->user_data; in write_long_vnd() local 120 memcpy(value + offset, buf, len); in write_long_vnd() 121 value[offset + len] = 0; in write_long_vnd() 148 uint8_t *value = attr->user_data; in write_signed() local 154 memcpy(value + offset, buf, len); in write_signed() 170 uint8_t *value = attr->user_data; in write_without_rsp_vnd() local [all …]
|
| /samples/shields/x_nucleo_53l0a1/src/ |
| A D | main.c | 42 struct sensor_value value; in mode_show_distance() local 51 ret = sensor_channel_get(CENTER, SENSOR_CHAN_DISTANCE, &value); in mode_show_distance() 57 distance = sensor_value_to_double(&value); in mode_show_distance() 68 struct sensor_value value; in mode_show_presence() local 81 &value); in mode_show_presence() 89 if (value.val1) { in mode_show_presence()
|
| /samples/bluetooth/peripheral_esp/src/ |
| A D | main.c | 100 uint16_t value = sys_cpu_to_le16(*u16); in read_u16() local 103 sizeof(value)); in read_u16() 175 uint16_t value) in temp_ccc_cfg_changed() argument 177 simulate_temp = value == BT_GATT_CCC_NOTIFY; in temp_ccc_cfg_changed() 196 rsp.flags = sys_cpu_to_le16(value->flags); in read_es_measurement() 197 rsp.sampling_function = value->sampling_func; in read_es_measurement() 200 rsp.application = value->application; in read_es_measurement() 303 sensor->temp_value, value, in update_temperature() 307 sensor->temp_value = value; in update_temperature() 311 value = sys_cpu_to_le16(sensor->temp_value); in update_temperature() [all …]
|
| /samples/subsys/settings/ |
| A D | sample.yaml | 28 - "[.]*<alpha/length> value exist in the storage" 29 - "[.]*Can\\'t to load the <alpha/length> value as expected" 46 - "The settings destination off the key <alpha/beta/source> has got value:\ 48 - "String value \"rtos\" was retrieved from the settings destination off the\
|
| /samples/bluetooth/tmap_peripheral/src/ |
| A D | ccp_call_ctrl.c | 80 uint8_t inst_index, const char *value) in read_uri_schemes_string_cb() argument 99 for (i = 0U; i < strlen(value); i++) { in read_uri_schemes_string_cb() 100 if (value[i] == ',') { in read_uri_schemes_string_cb() 106 printk("Cannot store URI of length %zu: %s\n", i, value); in read_uri_schemes_string_cb() 110 strncpy(remote_uri, value, i); in read_uri_schemes_string_cb()
|
| /samples/subsys/usb/hid-mouse/src/ |
| A D | main.c | 49 WRITE_BIT(tmp[MOUSE_BTN_REPORT_IDX], MOUSE_BTN_LEFT, evt->value); in input_cb() 52 WRITE_BIT(tmp[MOUSE_BTN_REPORT_IDX], MOUSE_BTN_RIGHT, evt->value); in input_cb() 55 if (evt->value) { in input_cb() 61 if (evt->value) { in input_cb() 68 evt->code, evt->value); in input_cb()
|
| /samples/subsys/usb/legacy/hid-mouse/src/ |
| A D | main.c | 64 WRITE_BIT(tmp[MOUSE_BTN_REPORT_IDX], MOUSE_BTN_LEFT, evt->value); in input_cb() 68 WRITE_BIT(tmp[MOUSE_BTN_REPORT_IDX], MOUSE_BTN_RIGHT, evt->value); in input_cb() 71 if (evt->value) { in input_cb() 77 if (evt->value) { in input_cb() 84 evt->code, evt->value); in input_cb()
|
| /samples/subsys/input/draw_touch_events/src/ |
| A D | main.c | 52 touch_point.x = evt->value; in touch_event_callback() 55 touch_point.y = evt->value; in touch_event_callback() 58 touch_point.pressed = evt->value; in touch_event_callback() 97 static int get_draw_position(int value, int upper_bound) in get_draw_position() argument 99 if (value < CROSS_DIM / 2) { in get_draw_position() 103 if (value + CROSS_DIM / 2 > upper_bound) { in get_draw_position() 107 return value - CROSS_DIM / 2; in get_draw_position()
|