Home
last modified time | relevance | path

Searched refs:q31_t (Results 26 – 50 of 85) sorted by relevance

1234

/Zephyr-latest/tests/subsys/dsp/utils/src/
Df32.c32 const DSP_DATA q31_t expected) in test_shift_f32_to_q7()
42 const DSP_DATA q31_t expected) in test_shift_f32_to_q15()
52 const DSP_DATA q31_t expected) in test_shift_f32_to_q31()
54 q31_t shifted_data = Z_SHIFT_F32_TO_Q31(data, shift); in test_shift_f32_to_q31()
Dq31.c31 static void test_shift_q31_to_f32(const q31_t data, const uint32_t shift, const float32_t expected) in test_shift_q31_to_f32()
40 static void test_shift_q31_to_f64(const q31_t data, const uint32_t shift, const float64_t expected) in test_shift_q31_to_f64()
Df64.c51 const DSP_DATA q31_t expected) in test_shift_f64_to_q31()
53 const q31_t shifted_data = Z_SHIFT_F64_TO_Q31(data, shift); in test_shift_f64_to_q31()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Demul_bmi160.c288 const q31_t *value, int8_t shift) in bmi160_emul_backend_set_channel()
292 q31_t scale; in bmi160_emul_backend_set_channel()
375 struct sensor_chan_spec ch, q31_t *lower, in bmi160_emul_backend_get_sample_range()
376 q31_t *upper, q31_t *epsilon, int8_t *shift) in bmi160_emul_backend_get_sample_range()
449 const q31_t *values, int8_t shift) in bmi160_emul_backend_set_offset()
456 q31_t scale; in bmi160_emul_backend_set_offset()
533 enum sensor_attribute attribute, q31_t *min, in bmi160_emul_backend_get_attribute_metadata()
534 q31_t *max, q31_t *increment, int8_t *shift) in bmi160_emul_backend_get_attribute_metadata()
548 *min = (q31_t)((int64_t)(0.0039 * 9.8065 * INT8_MIN * INT32_MAX) >> 3); in bmi160_emul_backend_get_attribute_metadata()
549 *max = (q31_t)((int64_t)(0.0039 * 9.8065 * INT8_MAX * INT32_MAX) >> 3); in bmi160_emul_backend_get_attribute_metadata()
[all …]
/Zephyr-latest/subsys/sensing/sensor/phy_3d_sensor/
Dphy_3d_sensor.h18 void (*q31_to_sensor_value)(q31_t q31, struct sensor_value *val);
19 q31_t (*sensor_value_to_q31)(struct sensor_value *val);
Dphy_3d_sensor.c26 static int64_t shifted_q31_to_scaled_int64(q31_t q, int8_t shift, int64_t scale) in shifted_q31_to_scaled_int64()
45 static q31_t scaled_int64_to_shifted_q31(int64_t val, int64_t scale, in scaled_int64_to_shifted_q31()
48 return (q31_t)((val * BIT(31 - shift) / scale)); in scaled_int64_to_shifted_q31()
51 static q31_t accel_sensor_value_to_q31(struct sensor_value *val) in accel_sensor_value_to_q31()
60 static void accel_q31_to_sensor_value(q31_t q, struct sensor_value *val) in accel_q31_to_sensor_value()
76 static q31_t gyro_sensor_value_to_q31(struct sensor_value *val) in gyro_sensor_value_to_q31()
85 static void gyro_q31_to_sensor_value(q31_t q, struct sensor_value *val) in gyro_q31_to_sensor_value()
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx_emul.c191 void bma4xx_emul_set_accel_data(const struct emul *target, q31_t value, int8_t shift, int8_t reg) in bma4xx_emul_set_accel_data()
220 const q31_t *value, int8_t shift) in bma4xx_emul_backend_set_channel()
254 struct sensor_chan_spec ch, q31_t *lower, in bma4xx_emul_backend_get_sample_range()
255 q31_t *upper, q31_t *epsilon, int8_t *shift) in bma4xx_emul_backend_get_sample_range()
276 *upper = (q31_t)(2 * 9.80665 * BIT(31 - 5)); in bma4xx_emul_backend_get_sample_range()
283 *upper = (q31_t)(4 * 9.80665 * BIT(31 - 6)); in bma4xx_emul_backend_get_sample_range()
290 *upper = (q31_t)(8 * 9.80665 * BIT(31 - 7)); in bma4xx_emul_backend_get_sample_range()
297 *upper = (q31_t)(16 * 9.80665 * BIT(31 - 8)); in bma4xx_emul_backend_get_sample_range()
Dbma4xx_emul.h17 void bma4xx_emul_set_accel_data(const struct emul *target, q31_t value, int8_t shift, int8_t reg);
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_emul.c180 static void icm42688_emul_get_accel_ranges(const struct emul *target, q31_t *lower, q31_t *upper, in icm42688_emul_get_accel_ranges()
181 q31_t *epsilon, int8_t *shift) in icm42688_emul_get_accel_ranges()
271 static void icm42688_emul_get_gyro_ranges(const struct emul *target, q31_t *lower, q31_t *upper, in icm42688_emul_get_gyro_ranges()
272 q31_t *epsilon, int8_t *shift) in icm42688_emul_get_gyro_ranges()
299 struct sensor_chan_spec ch, q31_t *lower, in icm42688_emul_backend_get_sample_range()
300 q31_t *upper, q31_t *epsilon, int8_t *shift) in icm42688_emul_backend_get_sample_range()
332 const q31_t *value, int8_t shift) in icm42688_emul_backend_set_channel()
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi_emul.c103 const q31_t *value, int8_t shift) in sb_tsi_emul_set_channel()
125 q31_t *lower, q31_t *upper, q31_t *epsilon, int8_t *shift) in sb_tsi_emul_get_sample_range()
/Zephyr-latest/tests/lib/cmsis_dsp/support/src/
Dq15.c19 #define ABS_ERROR_THRESH_Q31 ((q31_t)40000)
99 const q15_t *input1, const q31_t *ref, size_t length) in test_arm_q15_to_q31()
101 q31_t *output; in test_arm_q15_to_q31()
104 output = malloc(length * sizeof(q31_t)); in test_arm_q15_to_q31()
Dq7.c19 #define ABS_ERROR_THRESH_Q31 ((q31_t)(1 << 24))
99 const q7_t *input1, const q31_t *ref, size_t length) in test_arm_q7_to_q31()
101 q31_t *output; in test_arm_q7_to_q31()
104 output = malloc(length * sizeof(q31_t)); in test_arm_q7_to_q31()
/Zephyr-latest/drivers/sensor/f75303/
Df75303_emul.c107 const q31_t *value, int8_t shift) in f75303_emul_set_channel()
143 q31_t *lower, q31_t *upper, q31_t *epsilon, int8_t *shift) in f75303_emul_get_sample_range()
/Zephyr-latest/tests/lib/cmsis_dsp/statistics/src/
Dq7.c18 #define ABS_ERROR_THRESH_Q31 ((q31_t)(1 << 15))
144 q31_t ref[1]; in test_arm_power_q7()
145 q31_t *output; in test_arm_power_q7()
151 output = malloc(1 * sizeof(q31_t)); in test_arm_power_q7()
Dq31.pat1 static const q31_t in_com1[300] = {
79 static const q31_t in_com2[300] = {
157 static const q31_t in_absminmax[300] = {
235 static const q31_t ref_max_val[3] = {
243 static const q31_t ref_min_val[3] = {
251 static const q31_t ref_absmax_val[3] = {
259 static const q31_t ref_absmin_val[3] = {
267 static const q31_t ref_mean[4] = {
276 static const q31_t ref_rms[4] = {
280 static const q31_t ref_std[4] = {
[all …]
/Zephyr-latest/drivers/sensor/
Ddefault_rtio_sensor.c86 return compute_header_size(num_output_samples) + (num_output_samples * sizeof(q31_t)); in compute_min_buf_len()
149 q31_t *q = (q31_t *)(buf + compute_header_size(num_output_samples)); in sensor_submit_fallback_sync()
390 static int get_q31_value(const struct sensor_data_generic_header *header, const q31_t *values, in get_q31_value()
391 struct sensor_chan_spec chan_spec, q31_t *out) in get_q31_value()
402 static int decode_three_axis(const struct sensor_data_generic_header *header, const q31_t *values, in decode_three_axis()
431 static int decode_q31(const struct sensor_data_generic_header *header, const q31_t *values, in decode_q31()
470 const q31_t *q = (const q31_t *)(buffer + compute_header_size(header->num_channels)); in decode()
/Zephyr-latest/include/zephyr/dsp/
Dutils.h135 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
165 ((q31_t)Z_CLAMP((int64_t)(src * (1U << 31)) >> m, INT32_MIN, INT32_MAX))
Dtypes.h35 typedef int32_t q31_t; typedef
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c_emul.c137 const q31_t *value, int8_t shift) in akm09918c_emul_backend_set_channel()
181 struct sensor_chan_spec ch, q31_t *lower, in akm09918c_emul_backend_get_sample_range()
182 q31_t *upper, q31_t *epsilon, int8_t *shift) in akm09918c_emul_backend_get_sample_range()
/Zephyr-latest/tests/subsys/dsp/print_format/src/
Dmain.c22 q31_t q = (q31_t)0x0f5c28f0; /* 0.119999997 */ in ZTEST()
46 q31_t q = (q31_t)0x83d70a00; /* -0.970000029 */ in ZTEST()
/Zephyr-latest/tests/lib/cmsis_dsp/filtering/src/
Dbiquad_q31.pat1 static const q31_t in_default_val[100] = {
29 static const q31_t in_default_coeff[15] = {
36 static const q31_t ref_default[100] = {
/Zephyr-latest/tests/lib/cmsis_dsp/complexmath/src/
Dq15.c19 #define ABS_ERROR_THRESH_Q31 ((q31_t)(1 << 15))
58 const q15_t *input1, const q15_t *input2, const q31_t *ref, in test_arm_cmplx_dot_prod_q15()
61 q31_t *output; in test_arm_cmplx_dot_prod_q15()
64 output = malloc(2 * sizeof(q31_t)); in test_arm_cmplx_dot_prod_q15()
/Zephyr-latest/tests/lib/cmsis_dsp/interpolation/src/
Dq31.pat1 static const q31_t in_linear_x[40] = {
14 static const q31_t in_linear_y[41] = {
28 static const q31_t ref_linear[40] = {
41 static const q31_t in_bilinear_x[300] = {
119 static const q31_t in_bilinear_y[56] = {
140 static const q31_t ref_bilinear[150] = {
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h133 size_t length, const q31_t *a, const q31_t *b) in test_equal_q31()
236 size_t length, const q31_t *a, const q31_t *b, q31_t threshold) in test_near_equal_q31()
440 size_t length, const q31_t *a, const q31_t *b, float32_t threshold) in test_snr_error_q31()
/Zephyr-latest/tests/subsys/dsp/basicmath/src/
Dq31.pat1 static DSP_STATIC_DATA const q31_t in_com1[256] = {
68 static DSP_STATIC_DATA const q31_t in_com2[256] = {
135 static DSP_STATIC_DATA const q31_t in_bitwise1[11] = {
141 static DSP_STATIC_DATA const q31_t in_bitwise2[11] = {
147 static DSP_STATIC_DATA const q31_t in_rand[9] = {
153 static DSP_STATIC_DATA const q31_t in_maxpos[9] = {
159 static DSP_STATIC_DATA const q31_t in_maxneg[9] = {
165 static DSP_STATIC_DATA const q31_t in_maxneg2[9] = {
171 static DSP_STATIC_DATA const q31_t in_clip[267] = {
241 static const q31_t ref_add[256] = {
[all …]

1234