Home
last modified time | relevance | path

Searched refs:INT16_MAX (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/tests/drivers/sensor/icm42688/src/
Dmain.c119 expect_ug = (int32_t)(accel_percent[0] * INT64_C(1000000) * accel_range_g / INT16_MAX); in test_fetch_accel_with_range()
124 expect_ug = (int32_t)(accel_percent[1] * INT64_C(1000000) * accel_range_g / INT16_MAX); in test_fetch_accel_with_range()
129 expect_ug = (int32_t)(accel_percent[2] * INT64_C(1000000) * accel_range_g / INT16_MAX); in test_fetch_accel_with_range()
138 INT16_MAX / INT16_C(4), in ZTEST_F()
140 (int16_t)((INT16_MAX * INT32_C(91)) / INT32_C(100)), in ZTEST_F()
181 expect_10udps = (int32_t)(gyro_percent[0] * INT64_C(100) * scale_mdps / INT16_MAX); in test_fetch_gyro_with_range()
188 expect_10udps = (int32_t)(gyro_percent[1] * INT64_C(100) * scale_mdps / INT16_MAX); in test_fetch_gyro_with_range()
195 expect_10udps = (int32_t)(gyro_percent[2] * INT64_C(100) * scale_mdps / INT16_MAX); in test_fetch_gyro_with_range()
206 (int16_t)((INT16_MAX * INT32_C(15)) / INT32_C(100)), in ZTEST_F()
207 (int16_t)((INT16_MAX * INT32_C(68)) / INT32_C(100)), in ZTEST_F()
[all …]
/Zephyr-latest/lib/posix/options/
DKconfig.semaphore14 default $(INT16_MAX)
15 range 1 $(INT16_MAX)
/Zephyr-latest/include/zephyr/dsp/
Dutils.h125 ((q15_t)Z_CLAMP((int32_t)(src * (1U << 15)) >> m, INT16_MIN, INT16_MAX))
155 ((q15_t)Z_CLAMP((int32_t)(src * (1U << 15)) >> m, INT16_MIN, INT16_MAX))
/Zephyr-latest/
DKconfig.constants12 INT16_MAX := 32767
/Zephyr-latest/lib/libc/minimal/include/
Dstdint.h17 #define INT16_MAX __INT16_MAX__ macro
23 #define INT16_MIN (-INT16_MAX - 1)
/Zephyr-latest/samples/bluetooth/bap_unicast_client/src/
Dstream_lc3.c33 #define AUDIO_VOLUME (INT16_MAX - 3000)
/Zephyr-latest/tests/subsys/mgmt/ec_host_cmd/simulator/src/
Dmain.c394 host_to_dut->unbounded.bytes_to_write = INT16_MAX; in ZTEST()
408 host_to_dut->unbounded.bytes_to_write = INT16_MAX; in ZTEST()
/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.c76 raw_val = (raw_val * SENSOR_G * (int64_t) range) / INT16_MAX; in channel_accel_convert()
89 / (180LL * INT16_MAX)) / 1000000LL; in channel_gyro_convert()
91 / (180LL * INT16_MAX)) % 1000000LL; in channel_gyro_convert()
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h219 SENSOR_CHAN_MAX = INT16_MAX,
286 SENSOR_TRIG_MAX = INT16_MAX,
370 SENSOR_ATTR_MAX = INT16_MAX,
/Zephyr-latest/tests/net/lib/lwm2m/content_oma_tlv/src/
Dmain.c158 int16_t value[] = { 0, INT16_MAX, INT16_MIN }; in ZTEST()
172 (uint8_t)(INT16_MAX >> 8), in ZTEST()
173 (uint8_t)INT16_MAX in ZTEST()
210 ret = oma_tlv_writer.put_s16(&test_out, &test_path, INT16_MAX); in ZTEST()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Demul_bmi160.c367 CLAMP(DIV_ROUND_CLOSEST(intermediate * INT16_MAX, scale), INT16_MIN, INT16_MAX); in bmi160_emul_backend_set_channel()
/Zephyr-latest/tests/net/lib/lwm2m/content_plain_text/src/
Dmain.c102 int16_t value[] = { 0, INT16_MAX, INT16_MIN }; in ZTEST()
124 ret = plain_text_writer.put_s16(&test_out, &test_path, INT16_MAX); in ZTEST()
/Zephyr-latest/drivers/lora/
Dshell.c164 "bw", 0, INT16_MAX) < 0) { in lora_conf_set()
/Zephyr-latest/drivers/sensor/adi/adt7310/
Dadt7310.c218 if (value < INT16_MIN || value > INT16_MAX) { in adt7310_attr_set()
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_emul.c390 INT16_MIN, INT16_MAX); in icm42688_emul_backend_set_channel()
/Zephyr-latest/arch/arm64/core/
Delf.c168 if (x < INT16_MIN || x > INT16_MAX) { in data_reloc_handler()
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/
Ddevice_composition.c522 } else if (target > INT16_MAX) { in gen_delta_set_unack()
523 target = INT16_MAX; in gen_delta_set_unack()
605 } else if (target > INT16_MAX) { in gen_delta_set()
606 target = INT16_MAX; in gen_delta_set()
2669 } else if (target > INT16_MAX) { in gen_delta_set_unack_temp()
2670 target = INT16_MAX; in gen_delta_set_unack_temp()
2752 } else if (target > INT16_MAX) { in gen_delta_set_temp()
2753 target = INT16_MAX; in gen_delta_set_temp()
/Zephyr-latest/tests/net/lib/lwm2m/content_raw_cbor/src/
Dmain.c137 int16_t value[] = { 1, -1, INT16_MAX, INT16_MIN }; in ZTEST()
186 ret = cbor_writer.put_s16(&test_out, &test_path, INT16_MAX); in ZTEST()
/Zephyr-latest/include/zephyr/
Ddevice.h49 #define Z_DEVICE_DEPS_ENDS INT16_MAX
/Zephyr-latest/subsys/bluetooth/host/classic/
DKconfig48 range 23 $(INT16_MAX)
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c557 conv_val = (int64_t)raw_val * SENSOR_G * fs / INT16_MAX; in icm42670_convert_accel()
569 conv_val = ((int64_t)raw_val * fs * SENSOR_PI) / (INT16_MAX * 180U); in icm42670_convert_gyro()
/Zephyr-latest/samples/bluetooth/bap_broadcast_source/src/
Dmain.c104 #define AUDIO_VOLUME (INT16_MAX - 3000) /* codec does clipping above INT16_MAX - 3000 */
/Zephyr-latest/tests/net/lib/lwm2m/content_json/src/
Dmain.c205 int16_t value[] = { 0, INT16_MAX, INT16_MIN }; in ZTEST()
/Zephyr-latest/tests/net/lib/lwm2m/content_senml_cbor/src/
Dmain.c267 int16_t value[] = { 0, INT16_MAX, INT16_MIN }; in ZTEST()
/Zephyr-latest/subsys/net/lib/lwm2m/
Dlwm2m_rw_oma_tlv.c455 if (INT16_MIN <= value && value <= INT16_MAX) { in put_s32()

12