Home
last modified time | relevance | path

Searched refs:int32_t (Results 1 – 25 of 875) sorted by relevance

12345678910>>...35

/Zephyr-latest/tests/drivers/i2c/i2c_bme688/src/
Dsensor.c10 int32_t calculate_temperature(uint32_t adc_temp, int32_t *t_fine, in calculate_temperature()
16 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)cal_coeffs->par_t1 << 1); in calculate_temperature()
17 var2 = (var1 * (int32_t)cal_coeffs->par_t2) >> 11; in calculate_temperature()
19 var3 = ((var3) * ((int32_t)cal_coeffs->par_t3 << 4)) >> 14; in calculate_temperature()
29 uint32_t calculate_pressure(uint32_t pres_adc, int32_t t_fine, in calculate_pressure()
32 int32_t var1; in calculate_pressure()
33 int32_t var2; in calculate_pressure()
34 int32_t var3; in calculate_pressure()
35 int32_t pressure_comp; in calculate_pressure()
36 const int32_t pres_ovf_check = INT32_C(0x40000000); in calculate_pressure()
[all …]
/Zephyr-latest/include/zephyr/drivers/timer/
Dnrf_grtc_timer.h29 typedef void (*z_nrf_grtc_timer_compare_handler_t)(int32_t id, uint64_t expire_time,
37 int32_t z_nrf_grtc_timer_chan_alloc(void);
43 void z_nrf_grtc_timer_chan_free(int32_t chan);
58 bool z_nrf_grtc_timer_compare_evt_check(int32_t chan);
68 uint32_t z_nrf_grtc_timer_compare_evt_address_get(int32_t chan);
78 uint32_t z_nrf_grtc_timer_capture_task_address_get(int32_t chan);
88 bool z_nrf_grtc_timer_compare_int_lock(int32_t chan);
98 void z_nrf_grtc_timer_compare_int_unlock(int32_t chan, bool key);
110 int z_nrf_grtc_timer_compare_read(int32_t chan, uint64_t *val);
125 int z_nrf_grtc_timer_set(int32_t chan, uint64_t target_time,
[all …]
Dnrf_rtc_timer.h33 typedef void (*z_nrf_rtc_timer_compare_handler_t)(int32_t id,
44 int32_t z_nrf_rtc_timer_chan_alloc(void);
50 void z_nrf_rtc_timer_chan_free(int32_t chan);
66 uint32_t z_nrf_rtc_timer_compare_evt_address_get(int32_t chan);
78 uint32_t z_nrf_rtc_timer_capture_task_address_get(int32_t chan);
88 bool z_nrf_rtc_timer_compare_int_lock(int32_t chan);
98 void z_nrf_rtc_timer_compare_int_unlock(int32_t chan, bool key);
106 uint32_t z_nrf_rtc_timer_compare_read(int32_t chan);
133 int z_nrf_rtc_timer_set(int32_t chan, uint64_t target_time,
162 int z_nrf_rtc_timer_exact_set(int32_t chan, uint64_t target_time,
[all …]
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/include/
Dmath_ops.h73 void vec_power_int32(const int32_t *input, int64_t *output, int rsh, uint32_t length);
86 void fft_real32(int32_t *input, int32_t *output, int length);
104 void real_block_iir_32(int M, const int32_t *coef_sos, const int16_t *coef_g,
105 const int32_t *input, int32_t *output, int block_size);
126 void lms_iir_32(int32_t *err, int32_t *coef, int32_t *input, int32_t *ref,
127 int32_t mu, int block_size, int M);
Dinput.h116 int32_t fft_in[FFT_LENGTH * 2];
117 int32_t fft_out[FFT_LENGTH * 2];
121 static const int32_t iir_in[IIR_LENGTH] = {
328 static int32_t iir_out[IIR_LENGTH] = {};
332 static const int32_t coef_sos[IIR_M * 5] = {526133493, 848256040, 633507676,
351 static int32_t fir_err[FIR_LENGTH] = {};
352 static const int32_t fir_coef_ref[FIR_M] = {
365 static const int32_t fir_in_ref[FIR_LENGTH] = {
378 static const int32_t fir_ref_ref[FIR_LENGTH + FIR_M] = {
/Zephyr-latest/subsys/net/lib/zperf/
Dzperf_internal.h57 int32_t id;
65 int32_t flags;
66 int32_t num_of_threads;
67 int32_t port;
68 int32_t buffer_len;
69 int32_t bandwidth;
70 int32_t num_of_bytes;
74 int32_t flags;
75 int32_t total_len1;
76 int32_t total_len2;
[all …]
/Zephyr-latest/samples/boards/nxp/adsp/number_crunching/src/
Dnature_dsp_wrapper.c32 void vec_power_int32(const int32_t *in, int64_t *out, int rsh, uint32_t length) in vec_power_int32()
38 void fft_real32(int32_t *in, int32_t *out, int length) in fft_real32()
49 void real_block_iir_32(int M, const int32_t *coef_sos, const int16_t *coef_g, in real_block_iir_32()
50 const int32_t *in, int32_t *out, int block_size) in real_block_iir_32()
53 static int32_t objmem[256] = {}; in real_block_iir_32()
73 void lms_iir_32(int32_t *err, int32_t *coef, int32_t *input, int32_t *ref, in lms_iir_32()
74 int32_t mu, int block_size, int M) in lms_iir_32()
Dcmsis_dsp_wrapper.c24 void vec_power_int32(const int32_t *in, int64_t *out, int rsh, uint32_t length) in vec_power_int32()
30 void fft_real32(int32_t *in, int32_t *out, int length) in fft_real32()
47 void real_block_iir_32(int M, const int32_t *coef_sos, const int16_t *coef_g, in real_block_iir_32()
48 const int32_t *in, int32_t *out, int block_size) in real_block_iir_32()
70 void lms_iir_32(int32_t *err, int32_t *coef, int32_t *input, int32_t *ref, in lms_iir_32()
71 int32_t mu, int block_size, int M) in lms_iir_32()
/Zephyr-latest/subsys/tracing/ctf/
Dctf_top.h318 int32_t ret) in ctf_top_semaphore_init()
343 uint32_t timeout, int32_t ret) in ctf_top_semaphore_take_exit()
360 static inline void ctf_top_mutex_init(uint32_t mutex_id, int32_t ret) in ctf_top_mutex_init()
379 int32_t ret) in ctf_top_mutex_lock_exit()
390 static inline void ctf_top_mutex_unlock_exit(uint32_t mutex_id, int32_t ret) in ctf_top_mutex_unlock_exit()
431 static inline void ctf_top_socket_init(int32_t sock, uint32_t family, in ctf_top_socket_init()
437 static inline void ctf_top_socket_close_enter(int32_t sock) in ctf_top_socket_close_enter()
442 static inline void ctf_top_socket_close_exit(int32_t sock, int32_t ret) in ctf_top_socket_close_exit()
447 static inline void ctf_top_socket_shutdown_enter(int32_t sock, int32_t how) in ctf_top_socket_shutdown_enter()
452 static inline void ctf_top_socket_shutdown_exit(int32_t sock, int32_t ret) in ctf_top_socket_shutdown_exit()
[all …]
/Zephyr-latest/tests/lib/math/interpolation/src/
Dmain.c13 int32_t x_axis[] = {10, 20, 30, 40, 50}; in ZTEST()
14 int32_t y_axis[] = {20, 22, 24, 28, 36}; in ZTEST()
31 int32_t x_axis[] = {10, 20, 30, 40, 50}; in ZTEST()
32 int32_t y_axis[] = {20, 22, 24, 28, 36}; in ZTEST()
45 int32_t y_axis[] = {0, 1, 2}; in ZTEST()
46 int32_t x_axis[] = {0, 10, 20}; in ZTEST()
67 int32_t y_axis[] = {0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100}; in ZTEST()
68 int32_t x_axis[] = {2000, 2100, 2200, 2300, 2400, 2500, 2600, 2700, 2800, 2900, 3000}; in ZTEST()
70 int32_t expected; in ZTEST()
83 int32_t y_axis[] = {-100, -90, -80, -70, -60, -50, -40, -30, -20, -10, 0}; in ZTEST()
[all …]
/Zephyr-latest/include/zephyr/drivers/modem/
Dhl7800.h263 int32_t mdm_hl7800_power_off(void);
270 int32_t mdm_hl7800_reset(void);
287 int32_t mdm_hl7800_send_at_cmd(const uint8_t *data);
338 int32_t mdm_hl7800_update_apn(char *access_point_name);
345 int32_t mdm_hl7800_update_rat(enum mdm_hl7800_radio_mode value);
386 int32_t mdm_hl7800_get_local_time(struct tm *tm, int32_t *offset);
397 int32_t mdm_hl7800_update_fw(char *file_path);
405 int32_t mdm_hl7800_get_operator_index(void);
412 int32_t mdm_hl7800_get_functionality(void);
424 int32_t mdm_hl7800_set_functionality(enum mdm_hl7800_functionality mode);
[all …]
/Zephyr-latest/include/zephyr/drivers/regulator/
Dfake.h21 unsigned int, int32_t *);
23 int32_t, int32_t);
25 int32_t *);
27 const struct device *, int32_t, int32_t);
29 const struct device *, int32_t *);
/Zephyr-latest/drivers/sensor/bosch/bme680/
Dbme680.c71 var1 = ((int32_t)adc_temp >> 3) - ((int32_t)data->par_t1 << 1); in bme680_calc_temp()
72 var2 = (var1 * (int32_t)data->par_t2) >> 11; in bme680_calc_temp()
74 var3 = ((var3) * ((int32_t)data->par_t3 << 4)) >> 14; in bme680_calc_temp()
81 int32_t var1, var2, var3, calc_press; in bme680_calc_press()
83 var1 = (((int32_t)data->t_fine) >> 1) - 64000; in bme680_calc_press()
85 (int32_t)data->par_p6) >> 2; in bme680_calc_press()
86 var2 = var2 + ((var1 * (int32_t)data->par_p5) << 1); in bme680_calc_press()
87 var2 = (var2 >> 2) + ((int32_t)data->par_p4 << 16); in bme680_calc_press()
89 ((int32_t)data->par_p3 << 5)) >> 3) in bme680_calc_press()
90 + (((int32_t)data->par_p2 * var1) >> 1); in bme680_calc_press()
[all …]
/Zephyr-latest/tests/drivers/stepper/drv8424/api/src/
Dmain.c93 int32_t pos = 100u; in ZTEST_F()
101 int32_t steps = 100; in ZTEST_F()
114 int32_t steps = 1000; in ZTEST_F()
115 int32_t position_1 = 0; in ZTEST_F()
116 int32_t position_2 = 0; in ZTEST_F()
132 int32_t steps = 1000; in ZTEST_F()
147 int32_t steps = 1000; in ZTEST_F()
148 int32_t position_1 = 0; in ZTEST_F()
149 int32_t position_2 = 0; in ZTEST_F()
167 int32_t pos = 50; in ZTEST_F()
[all …]
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/
Dtest_calibrate.c17 static int test_set_get_calibration(int32_t calibrate_set) in test_set_get_calibration()
19 int32_t calibrate_get; in test_set_get_calibration()
46 int32_t calibrate_get; in ZTEST()
48 int32_t range_limit; in ZTEST()
49 int32_t range_step; in ZTEST()
69 for (int32_t set = range_step; set <= range_limit; set += range_step) { in ZTEST()
79 for (int32_t set = range_step; set <= range_limit; set += range_step) { in ZTEST()
/Zephyr-latest/include/zephyr/drivers/
Dregulator.h77 unsigned int idx, int32_t *volt_uv);
78 typedef int (*regulator_set_voltage_t)(const struct device *dev, int32_t min_uv,
79 int32_t max_uv);
81 int32_t *volt_uv);
84 unsigned int idx, int32_t *current_ua);
86 int32_t min_ua, int32_t max_ua);
88 int32_t *curr_ua);
161 int32_t min_uv;
163 int32_t max_uv;
165 int32_t init_uv;
[all …]
/Zephyr-latest/modules/thrift/src/thrift/protocol/
DTBinaryProtocol.h49 static const int32_t VERSION_MASK = ((int32_t)0xffff0000);
50 static const int32_t VERSION_1 = ((int32_t)0x80010000);
60 TBinaryProtocolT(std::shared_ptr<Transport_> trans, int32_t string_limit, in TBinaryProtocolT()
61 int32_t container_limit, bool strict_read, bool strict_write) in TBinaryProtocolT()
69 void setStringSizeLimit(int32_t string_limit) in setStringSizeLimit()
74 void setContainerSizeLimit(int32_t container_limit) in setContainerSizeLimit()
90 const int32_t seqid);
124 inline uint32_t writeI32(const int32_t i32);
139 int32_t &seqid);
171 inline uint32_t readI32(int32_t &i32);
[all …]
/Zephyr-latest/drivers/usb/device/
Dusb_dc_native_posix_adapt.h66 int32_t transfer_buffer_length;
67 int32_t start_frame;
68 int32_t number_of_packets;
69 int32_t interval;
84 int32_t status;
85 int32_t actual_length;
86 int32_t start_frame;
87 int32_t number_of_packets;
88 int32_t error_count;
/Zephyr-latest/drivers/dai/intel/dmic/
Ddmic.h87 #define LOGRAMP_CONST_TERM ((int32_t) \
125 ((int32_t)(((const double)f) * ((int64_t)1 << (const int)qy) + 0.5))
168 int32_t gain_coef; /* Gain update constant */
169 int32_t gain; /* Gain value to be applied to HW */
170 int32_t startcount; /* Counter that controls HW unmute */
171 int32_t unmute_time_ms; /* Unmute ramp time in milliseconds */
186 static inline int32_t sat_int32(int64_t x) in sat_int32()
193 return (int32_t)x; in sat_int32()
197 static inline int32_t q_multsr_sat_32x32(int32_t x, int32_t y, in q_multsr_sat_32x32()
207 time_ms = Q_MULTSR_32X32((int32_t)rate, LOGRAMP_TIME_COEF_Q15, 0, 15, 0) + in dmic_get_unmute_ramp_from_samplerate()
/Zephyr-latest/include/zephyr/sys/
Dlinear_range.h63 int32_t min;
127 static inline int32_t linear_range_get_max_value(const struct linear_range *r) in linear_range_get_max_value()
129 return r->min + (int32_t)(r->step * (r->max_idx - r->min_idx)); in linear_range_get_max_value()
143 uint16_t idx, int32_t *val) in linear_range_get_value()
149 *val = r->min + (int32_t)(r->step * (idx - r->min_idx)); in linear_range_get_value()
167 int32_t *val) in linear_range_group_get_value()
194 int32_t val, uint16_t *idx) in linear_range_get_index()
232 size_t r_cnt, int32_t val, in linear_range_group_get_index()
266 int32_t val_min, int32_t val_max, in linear_range_get_win_index()
269 int32_t r_max = linear_range_get_max_value(r); in linear_range_get_win_index()
[all …]
/Zephyr-latest/include/zephyr/math/
Dinterpolation.h37 static inline int32_t linear_interpolate(const int32_t *x_axis, const int32_t *y_axis, uint8_t len, in linear_interpolate()
38 int32_t x) in linear_interpolate()
41 int32_t x_shifted; in linear_interpolate()
/Zephyr-latest/tests/modules/thrift/ThriftTest/src/
Dserver.hpp52 int32_t testI32(const int32_t thing) override in testI32()
97 void testMap(map<int32_t, int32_t> &out, const map<int32_t, int32_t> &thing) override in testMap() argument
99 map<int32_t, int32_t>::const_iterator m_iter; in testMap()
137 void testSet(set<int32_t> &out, const set<int32_t> &thing) override in testSet()
139 set<int32_t>::const_iterator s_iter; in testSet()
157 void testList(vector<int32_t> &out, const vector<int32_t> &thing) override in testList()
159 vector<int32_t>::const_iterator l_iter; in testList()
188 void testMapMap(map<int32_t, map<int32_t, int32_t>> &mapmap, const int32_t hello) override in testMapMap() argument
190 map<int32_t, int32_t> pos; in testMapMap()
191 map<int32_t, int32_t> neg; in testMapMap()
[all …]
/Zephyr-latest/modules/openthread/platform/
Dalarm.c29 static int32_t time_offset_us;
30 static int32_t time_offset_ms;
55 (int32_t)((int64_t)otPlatAlarmMicroGetNow() - (uint32_t)otPlatRadioGetNow(NULL)); in platformAlarmInit()
90 int32_t delta = (int32_t)(aT0 + aDt - otPlatAlarmMilliGetNow()); in otPlatAlarmMilliStartAt()
110 int32_t delta = (int32_t)(aT0 + aDt - otPlatAlarmMicroGetNow()); in otPlatAlarmMicroStartAt()
/Zephyr-latest/tests/lib/c_lib/thrd/src/
Dtss.c15 static int32_t destroyed_values[2];
16 static const int32_t forty_two = FORTY_TWO;
17 static const int32_t seventy_three = SEVENTY_THREE;
24 int32_t val = *(int32_t *)arg; in destroy_fn()
53 int32_t val = *(int32_t *)arg; in thread_fn()
/Zephyr-latest/subsys/pm/policy/
Dpolicy_latency.c19 static int32_t max_latency_us = SYS_FOREVER_US;
21 int32_t max_latency_cyc = -1;
28 int32_t new_max_latency_us = SYS_FOREVER_US; in update_max_latency()
33 ((int32_t)req->value_us < new_max_latency_us)) { in update_max_latency()
34 new_max_latency_us = (int32_t)req->value_us; in update_max_latency()
40 int32_t new_max_latency_cyc = -1; in update_max_latency()
47 new_max_latency_cyc = (int32_t)k_us_to_cyc_ceil32(new_max_latency_us); in update_max_latency()

12345678910>>...35