Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 606) sorted by relevance

12345678910>>...25

/hal_espressif-2.7.6/components/esp_http_client/test/
Dtest_http_client.c61 char *value = NULL; variable
65 esp_err_t r = esp_http_client_get_username(client, &value);
67 TEST_ASSERT_NOT_NULL(value);
68 TEST_ASSERT_EQUAL_STRING(USERNAME, value);
70 value = NULL;
71 r = esp_http_client_get_password(client, &value);
73 TEST_ASSERT_NOT_NULL(value);
74 TEST_ASSERT_EQUAL_STRING(PASSWORD, value);
90 char *value = NULL; variable
93 esp_err_t r = esp_http_client_get_username(client, &value);
[all …]
/hal_espressif-2.7.6/examples/system/console/components/cmd_nvs/
Dcmd_nvs.c51 struct arg_str *value; member
110 uint8_t value; in store_blob() local
127 value = ch - '0'; in store_blob()
129 value = ch - 'A' + 10; in store_blob()
131 value = ch - 'a' + 10; in store_blob()
139 blob[j++] += value; in store_blob()
141 blob[j] = value << 4; in store_blob()
183 int32_t value = strtol(str_value, NULL, 0); in set_value_in_nvs() local
184 if (value < INT8_MIN || value > INT8_MAX || errno == ERANGE) { in set_value_in_nvs()
187 err = nvs_set_i8(nvs, key, (int8_t)value); in set_value_in_nvs()
[all …]
/hal_espressif-2.7.6/tools/unit-test-app/components/test_utils/include/
Dtest_utils.h50 #define TEST_PERFORMANCE_LESS_THAN(name, value_fmt, value) do { \ argument
51 printf("[Performance][" PERFORMANCE_STR(name) "]: "value_fmt"\n", value); \
52 _TEST_PERFORMANCE_ASSERT(value < PERFORMANCE_CON(IDF_PERFORMANCE_MAX_, name)); \
55 #define TEST_PERFORMANCE_GREATER_THAN(name, value_fmt, value) do { \ argument
56 printf("[Performance][" PERFORMANCE_STR(name) "]: "value_fmt"\n", value); \
57 _TEST_PERFORMANCE_ASSERT(value > PERFORMANCE_CON(IDF_PERFORMANCE_MIN_, name)); \
63 #define TEST_PERFORMANCE_CCOMP_GREATER_THAN(name, value_fmt, value) \ argument
64 TEST_PERFORMANCE_GREATER_THAN(name, value_fmt, value)
65 #define TEST_PERFORMANCE_CCOMP_LESS_THAN(name, value_fmt, value) \ argument
66 TEST_PERFORMANCE_LESS_THAN(name, value_fmt, value)
[all …]
/hal_espressif-2.7.6/components/esp_http_client/lib/
Dhttp_header.c33 char *value; /*!< value */ member
69 esp_err_t http_header_get(http_header_handle_t header, const char *key, char **value) in http_header_get() argument
75 *value = item->value; in http_header_get()
77 *value = NULL; in http_header_get()
83 …tic esp_err_t http_header_new_item(http_header_handle_t header, const char *key, const char *value) in http_header_new_item() argument
92 http_utils_assign_string(&item->value, value, -1); in http_header_new_item()
93 HTTP_MEM_CHECK(TAG, item->value, goto _header_new_item_exit); in http_header_new_item()
94 http_utils_trim_whitespace(&item->value); in http_header_new_item()
99 free(item->value); in http_header_new_item()
104 esp_err_t http_header_set(http_header_handle_t header, const char *key, const char *value) in http_header_set() argument
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/external/sbc/decoder/include/
Doi_bitstream.h54 OI_UINT16 value,
80 #define OI_BITSTREAM_READUINT(result, bits, ptr, value, bitPtr) \ argument
86 result = (value) << (bitPtr); \
91 value = ((value) << 8) | *ptr++; \
98 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \ argument
101 value |= datum << bitPtr;\
105 *ptr++ = (OI_UINT8)(value >> 24);\
106 value <<= 8;\
110 #define OI_BITSTREAM_WRITEFLUSH(ptr, value, bitPtr) \ argument
114 *ptr++ = (OI_UINT8)(value >> 24);\
[all …]
/hal_espressif-2.7.6/components/nvs_flash/include/
Dnvs_handle.hpp67 esp_err_t set_item(const char *key, T value);
69 esp_err_t set_string(const char *key, const char* value) = 0;
92 esp_err_t get_item(const char *key, T &value);
237 template<typename T, typename std::enable_if<std::is_integral<T>::value, void*>::type = nullptr>
240 return static_cast<ItemType>(((std::is_signed<T>::value)?0x10:0x00) | sizeof(T)); in itemTypeOf()
246 template<typename T, typename std::enable_if<std::is_enum<T>::value, int>::type = 0>
249 return static_cast<ItemType>(((std::is_signed<T>::value)?0x10:0x00) | sizeof(T)); in itemTypeOf()
260 esp_err_t NVSHandle::set_item(const char *key, T value) { in set_item() argument
261 return set_typed_item(itemTypeOf(value), key, &value, sizeof(value)); in set_item()
265 esp_err_t NVSHandle::get_item(const char *key, T &value) { in get_item() argument
[all …]
/hal_espressif-2.7.6/tools/ble/
Dlib_gatt.py159 self.value = [0]
169 'Value': self.value,
203 def WriteValue(self, value, options): argument
262 def WriteValue(self, value, options): argument
289 self.value = [dbus.Byte(2)]
295 for val in self.value:
312 self.value = [dbus.Byte(0)]
316 for val in self.value:
322 def WriteValue(self, value, options): argument
326 print('\tCurrent value:', '\t', self.value)
[all …]
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/client/
Dlighting_client.c777 static int light_get_state(bt_mesh_client_common_param_t *common, void *value) in light_get_state() argument
783 if (value) { in light_get_state()
787 get = (struct bt_mesh_light_lc_property_get *)value; in light_get_state()
801 void *value, uint16_t value_len, bool need_ack) in light_set_state() argument
818 set = (struct bt_mesh_light_lightness_set *)value; in light_set_state()
830 set = (struct bt_mesh_light_lightness_linear_set *)value; in light_set_state()
842 set = (struct bt_mesh_light_lightness_default_set *)value; in light_set_state()
849 set = (struct bt_mesh_light_lightness_range_set *)value; in light_set_state()
857 set = (struct bt_mesh_light_ctl_set *)value; in light_set_state()
871 set = (struct bt_mesh_light_ctl_temperature_set *)value; in light_set_state()
[all …]
Dgeneric_client.c338 uint32_t value = 0; in generic_status() local
339 value = net_buf_simple_pull_le32(buf); in generic_status()
340 status->battery_level = (uint8_t)value; in generic_status()
341 status->time_to_discharge = (value >> 8); in generic_status()
342 value = net_buf_simple_pull_le32(buf); in generic_status()
343 status->time_to_charge = (value & 0xffffff); in generic_status()
344 status->flags = (uint8_t)(value >> 24); in generic_status()
694 static int gen_get_state(bt_mesh_client_common_param_t *common, void *value) in gen_get_state() argument
700 if (value) { in gen_get_state()
704 get = (struct bt_mesh_gen_user_property_get *)value; in gen_get_state()
[all …]
Dsensor_client.c361 void *value, uint16_t value_len, bool need_ack) in sensor_act_state() argument
377 act = (struct bt_mesh_sensor_descriptor_get *)value; in sensor_act_state()
385 act = (struct bt_mesh_sensor_cadence_get *)value; in sensor_act_state()
392 act = (struct bt_mesh_sensor_cadence_set *)value; in sensor_act_state()
404 act = (struct bt_mesh_sensor_settings_get *)value; in sensor_act_state()
410 act = (struct bt_mesh_sensor_setting_get *)value; in sensor_act_state()
418 act = (struct bt_mesh_sensor_setting_set *)value; in sensor_act_state()
426 act = (struct bt_mesh_sensor_get *)value; in sensor_act_state()
434 act = (struct bt_mesh_sensor_column_get *)value; in sensor_act_state()
441 act = (struct bt_mesh_sensor_series_get *)value; in sensor_act_state()
[all …]
Dtime_scene_client.c377 static int time_scene_get_state(bt_mesh_client_common_param_t *common, void *value) in time_scene_get_state() argument
383 if (value) { in time_scene_get_state()
387 get = (struct bt_mesh_scheduler_act_get *)value; in time_scene_get_state()
401 void *value, uint16_t value_len, bool need_ack) in time_scene_set_state() argument
417 set = (struct bt_mesh_time_set *)value; in time_scene_set_state()
427 set = (struct bt_mesh_time_zone_set *)value; in time_scene_set_state()
434 set = (struct bt_mesh_tai_utc_delta_set *)value; in time_scene_set_state()
441 set = (struct bt_mesh_time_role_set *)value; in time_scene_set_state()
448 set = (struct bt_mesh_scene_store *)value; in time_scene_set_state()
455 set = (struct bt_mesh_scene_recall *)value; in time_scene_set_state()
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/external/sbc/decoder/srce/
Dbitstream-decode.c46 bs->value = ((OI_INT32)buffer[0] << 16) | ((OI_INT32)buffer[1] << 8) | (buffer[2]); in OI_BITSTREAM_ReadInit()
55 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT()
68 result = bs->value << 8; in OI_BITSTREAM_ReadUINT4Aligned()
71 result = bs->value << 12; in OI_BITSTREAM_ReadUINT4Aligned()
72 bs->value = (bs->value << 8) | *bs->ptr.r++; in OI_BITSTREAM_ReadUINT4Aligned()
85 result = bs->value >> 16; in OI_BITSTREAM_ReadUINT8Aligned()
86 bs->value = (bs->value << 8) | *bs->ptr.r++; in OI_BITSTREAM_ReadUINT8Aligned()
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_sensor_model.c648 if (p_src_data->value.state_change.sensor_cadence_set.trigger_delta_down) { in btc_ble_mesh_sensor_server_copy_req_data()
649 length = p_src_data->value.state_change.sensor_cadence_set.trigger_delta_down->len; in btc_ble_mesh_sensor_server_copy_req_data()
650 … p_dest_data->value.state_change.sensor_cadence_set.trigger_delta_down = bt_mesh_alloc_buf(length); in btc_ble_mesh_sensor_server_copy_req_data()
651 if (p_dest_data->value.state_change.sensor_cadence_set.trigger_delta_down == NULL) { in btc_ble_mesh_sensor_server_copy_req_data()
655 … net_buf_simple_add_mem(p_dest_data->value.state_change.sensor_cadence_set.trigger_delta_down, in btc_ble_mesh_sensor_server_copy_req_data()
656 … p_src_data->value.state_change.sensor_cadence_set.trigger_delta_down->data, in btc_ble_mesh_sensor_server_copy_req_data()
657 … p_src_data->value.state_change.sensor_cadence_set.trigger_delta_down->len); in btc_ble_mesh_sensor_server_copy_req_data()
659 if (p_src_data->value.state_change.sensor_cadence_set.trigger_delta_up) { in btc_ble_mesh_sensor_server_copy_req_data()
660 length = p_src_data->value.state_change.sensor_cadence_set.trigger_delta_up->len; in btc_ble_mesh_sensor_server_copy_req_data()
661 … p_dest_data->value.state_change.sensor_cadence_set.trigger_delta_up = bt_mesh_alloc_buf(length); in btc_ble_mesh_sensor_server_copy_req_data()
[all …]
Dbtc_ble_mesh_generic_model.c567 if (p_src_data->value.state_change.user_property_set.value) { in btc_ble_mesh_generic_server_copy_req_data()
568 length = p_src_data->value.state_change.user_property_set.value->len; in btc_ble_mesh_generic_server_copy_req_data()
569 p_dest_data->value.state_change.user_property_set.value = bt_mesh_alloc_buf(length); in btc_ble_mesh_generic_server_copy_req_data()
570 if (p_dest_data->value.state_change.user_property_set.value == NULL) { in btc_ble_mesh_generic_server_copy_req_data()
574 net_buf_simple_add_mem(p_dest_data->value.state_change.user_property_set.value, in btc_ble_mesh_generic_server_copy_req_data()
575 p_src_data->value.state_change.user_property_set.value->data, in btc_ble_mesh_generic_server_copy_req_data()
576 p_src_data->value.state_change.user_property_set.value->len); in btc_ble_mesh_generic_server_copy_req_data()
581 if (p_src_data->value.state_change.admin_property_set.value) { in btc_ble_mesh_generic_server_copy_req_data()
582 length = p_src_data->value.state_change.admin_property_set.value->len; in btc_ble_mesh_generic_server_copy_req_data()
583 … p_dest_data->value.state_change.admin_property_set.value = bt_mesh_alloc_buf(length); in btc_ble_mesh_generic_server_copy_req_data()
[all …]
/hal_espressif-2.7.6/components/bt/host/bluedroid/btc/core/
Dbtc_config.c130 bool btc_config_get_int(const char *section, const char *key, int *value) in btc_config_get_int() argument
135 assert(value != NULL); in btc_config_get_int()
139 *value = config_get_int(config, section, key, *value); in btc_config_get_int()
145 bool btc_config_set_int(const char *section, const char *key, int value) in btc_config_set_int() argument
151 config_set_int(config, section, key, value); in btc_config_set_int()
156 bool btc_config_get_str(const char *section, const char *key, char *value, int *size_bytes) in btc_config_get_str() argument
161 assert(value != NULL); in btc_config_get_str()
170 strlcpy(value, stored_value, *size_bytes); in btc_config_get_str()
171 *size_bytes = strlen(value) + 1; in btc_config_get_str()
176 bool btc_config_set_str(const char *section, const char *key, const char *value) in btc_config_set_str() argument
[all …]
/hal_espressif-2.7.6/components/hal/esp32s2/include/hal/
Dcpu_ll.h178 uint32_t value = 0; in cpu_ll_read_dedic_gpio_in() local
179 __asm volatile("get_gpio_in %0" : "=r"(value) : :); in cpu_ll_read_dedic_gpio_in()
180 return value; in cpu_ll_read_dedic_gpio_in()
185 uint32_t value = 0; in cpu_ll_read_dedic_gpio_out() local
186 __asm volatile("rur.gpio_out %0" : "=r"(value) : :); in cpu_ll_read_dedic_gpio_out()
187 return value; in cpu_ll_read_dedic_gpio_out()
190 static inline void cpu_ll_write_dedic_gpio_all(uint32_t value) in cpu_ll_write_dedic_gpio_all() argument
192 __asm volatile("wur.gpio_out %0"::"r"(value):); in cpu_ll_write_dedic_gpio_all()
195 static inline void cpu_ll_write_dedic_gpio_mask(uint32_t mask, uint32_t value) in cpu_ll_write_dedic_gpio_mask() argument
197 __asm volatile("wr_mask_gpio_out %0, %1" : : "r"(value), "r"(mask):); in cpu_ll_write_dedic_gpio_mask()
/hal_espressif-2.7.6/components/hal/esp32s3/include/hal/
Dcpu_ll.h187 uint32_t value = 0; in cpu_ll_read_dedic_gpio_in() local
188 asm volatile("get_gpio_in %0" : "=r"(value) : :); in cpu_ll_read_dedic_gpio_in()
189 return value; in cpu_ll_read_dedic_gpio_in()
194 uint32_t value = 0; in cpu_ll_read_dedic_gpio_out() local
195 asm volatile("rur.gpio_out %0" : "=r"(value) : :); in cpu_ll_read_dedic_gpio_out()
196 return value; in cpu_ll_read_dedic_gpio_out()
199 static inline void cpu_ll_write_dedic_gpio_all(uint32_t value) in cpu_ll_write_dedic_gpio_all() argument
201 asm volatile("wur.gpio_out %0"::"r"(value):); in cpu_ll_write_dedic_gpio_all()
204 static inline void cpu_ll_write_dedic_gpio_mask(uint32_t mask, uint32_t value) in cpu_ll_write_dedic_gpio_mask() argument
210 orig |= value & mask; in cpu_ll_write_dedic_gpio_mask()
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/ble_mesh_node/onoff_server/main/
Dmain.c222 ESP_LOGI(TAG, "onoff 0x%02x", param->value.state_change.onoff_set.onoff); in example_ble_mesh_generic_server_cb()
223 … example_change_led_state(param->model, &param->ctx, param->value.state_change.onoff_set.onoff); in example_ble_mesh_generic_server_cb()
238 …ESP_LOGI(TAG, "onoff 0x%02x, tid 0x%02x", param->value.set.onoff.onoff, param->value.set.onoff.tid… in example_ble_mesh_generic_server_cb()
239 if (param->value.set.onoff.op_en) { in example_ble_mesh_generic_server_cb()
241 param->value.set.onoff.trans_time, param->value.set.onoff.delay); in example_ble_mesh_generic_server_cb()
243 example_handle_gen_onoff_msg(param->model, &param->ctx, &param->value.set.onoff); in example_ble_mesh_generic_server_cb()
260 param->value.state_change.appkey_add.net_idx, in example_ble_mesh_config_server_cb()
261 param->value.state_change.appkey_add.app_idx); in example_ble_mesh_config_server_cb()
262 ESP_LOG_BUFFER_HEX("AppKey", param->value.state_change.appkey_add.app_key, 16); in example_ble_mesh_config_server_cb()
267 param->value.state_change.mod_app_bind.element_addr, in example_ble_mesh_config_server_cb()
[all …]
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_models/server/
Dstate_binding.c99 bt_mesh_server_state_value_t *value) in bt_mesh_update_binding_state() argument
102 value == NULL || type > BIND_STATE_MAX) { in bt_mesh_update_binding_state()
117 srv->state.onoff = value->gen_onoff.onoff; in bt_mesh_update_binding_state()
129 srv->state.level = value->gen_level.level; in bt_mesh_update_binding_state()
145 srv->state->onpowerup = value->gen_onpowerup.onpowerup; in bt_mesh_update_binding_state()
162 srv->state->power_actual = value->gen_power_actual.power; in bt_mesh_update_binding_state()
190 srv->state->lightness_actual = value->light_lightness_actual.lightness; in bt_mesh_update_binding_state()
216 srv->state->lightness_linear = value->light_lightness_linear.lightness; in bt_mesh_update_binding_state()
233 srv->state->lightness = value->light_ctl_lightness.lightness; in bt_mesh_update_binding_state()
250 srv->state->temperature = value->light_ctl_temp_delta_uv.temperature; in bt_mesh_update_binding_state()
[all …]
/hal_espressif-2.7.6/components/driver/test/
Dtest_dedicated_gpio.c64 uint32_t value = 0; in test_dedic_gpio_on_specific_core() local
110 value = cpu_ll_read_dedic_gpio_out(); in test_dedic_gpio_on_specific_core()
111 TEST_ASSERT_EQUAL(0x0D, value); // 1101 in test_dedic_gpio_on_specific_core()
112 value = cpu_ll_read_dedic_gpio_in(); in test_dedic_gpio_on_specific_core()
113 TEST_ASSERT_EQUAL(0x03, value); // 11 in test_dedic_gpio_on_specific_core()
116 value = cpu_ll_read_dedic_gpio_out(); in test_dedic_gpio_on_specific_core()
117 TEST_ASSERT_EQUAL(0x05, value); // 0101 in test_dedic_gpio_on_specific_core()
118 value = cpu_ll_read_dedic_gpio_in(); in test_dedic_gpio_on_specific_core()
119 TEST_ASSERT_EQUAL(0x01, value); // 01 in test_dedic_gpio_on_specific_core()
122 value = cpu_ll_read_dedic_gpio_out(); in test_dedic_gpio_on_specific_core()
[all …]
/hal_espressif-2.7.6/examples/protocols/esp_local_ctrl/scripts/
Desp_local_ctrl.py62 def encode_prop_value(prop, value): argument
65 return struct.pack('q', value)
67 return struct.pack('i', value)
69 return struct.pack('?', value)
71 return tobytes(value)
72 return value
78 def decode_prop_value(prop, value): argument
81 return struct.unpack('q', value)[0]
83 return struct.unpack('i', value)[0]
85 return struct.unpack('?', value)[0]
[all …]
/hal_espressif-2.7.6/examples/peripherals/pcnt/pulse_count_event/
DREADME.md21 …s left floating, the value of counter increases with the rising edges of the PWM pulses. If GPIO5 …
49 Current counter value :-1
50 Current counter value :-2
51 Current counter value :-3
52 Current counter value :-4
55 Current counter value :-5
56 Current counter value :-6
57 Current counter value :-7
58 Current counter value :-8
59 Current counter value :-9
[all …]
/hal_espressif-2.7.6/examples/bluetooth/esp_ble_mesh/common_components/light_driver/
Dlight_driver.c52 uint8_t value; member
92 g_light_status.value = 100; in light_driver_init()
114 … g_light_status.hue, g_light_status.saturation, g_light_status.value, g_light_status.lightness); in light_driver_init()
160 static esp_err_t light_driver_hsv2rgb(uint16_t hue, uint8_t saturation, uint8_t value, in light_driver_hsv2rgb() argument
165 uint16_t P = value * (100 - saturation) / 100; in light_driver_hsv2rgb()
166 uint16_t Q = value * (10000 - F * saturation) / 10000; in light_driver_hsv2rgb()
167 uint16_t T = value * (10000 - saturation * (100 - F)) / 10000; in light_driver_hsv2rgb()
171 *red = value; in light_driver_hsv2rgb()
178 *green = value; in light_driver_hsv2rgb()
184 *green = value; in light_driver_hsv2rgb()
[all …]
/hal_espressif-2.7.6/components/bt/esp_ble_mesh/mesh_common/
Dmesh_atomic.c55 bt_mesh_atomic_val_t bt_mesh_atomic_set(bt_mesh_atomic_t *target, bt_mesh_atomic_val_t value) in bt_mesh_atomic_set() argument
62 *target = value; in bt_mesh_atomic_set()
82 bt_mesh_atomic_val_t bt_mesh_atomic_or(bt_mesh_atomic_t *target, bt_mesh_atomic_val_t value) in bt_mesh_atomic_or() argument
89 *target |= value; in bt_mesh_atomic_or()
109 bt_mesh_atomic_val_t bt_mesh_atomic_and(bt_mesh_atomic_t *target, bt_mesh_atomic_val_t value) in bt_mesh_atomic_and() argument
116 *target &= value; in bt_mesh_atomic_and()
/hal_espressif-2.7.6/tools/unit-test-app/tools/
DCreateSectionTable.py132 value = 0
135 value += ord(tmp[i]) << (i * 8)
137 value += ord(tmp[i]) << ((size - i - 1) * 8)
143 value = None
144 return value
153 value = None
157 value = section[address:]
158 for i, c in enumerate(value):
160 value = value[:i]
163 return value

12345678910>>...25