/Zephyr-latest/lib/libc/minimal/source/stdlib/ |
D | strtoul.c | 46 register unsigned long acc; in strtoul() local 77 for (acc = 0, any = 0;; c = *s++) { in strtoul() 88 if ((any < 0) || (acc > cutoff) || ((acc == cutoff) && (c > cutlim))) { in strtoul() 92 acc *= base; in strtoul() 93 acc += c; in strtoul() 97 acc = ULONG_MAX; in strtoul() 100 acc = -acc; in strtoul() 105 return acc; in strtoul()
|
D | strtoull.c | 46 register unsigned long long acc; in strtoull() local 76 for (acc = 0, any = 0;; c = *s++) { in strtoull() 87 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoull() 91 acc *= base; in strtoull() 92 acc += c; in strtoull() 96 acc = ULLONG_MAX; in strtoull() 99 acc = -acc; in strtoull() 104 return acc; in strtoull()
|
D | strtol.c | 46 register unsigned long acc; in strtol() local 97 for (acc = 0, any = 0;; c = *s++) { in strtol() 108 if ((any < 0) || (acc > cutoff) || ((acc == cutoff) && (c > cutlim))) { in strtol() 112 acc *= base; in strtol() 113 acc += c; in strtol() 118 acc = neg ? LONG_MIN : LONG_MAX; in strtol() 121 acc = -acc; in strtol() 127 return acc; in strtol()
|
D | strtoll.c | 46 register unsigned long long acc; in strtoll() local 96 for (acc = 0, any = 0;; c = *s++) { in strtoll() 107 if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim)) { in strtoll() 111 acc *= base; in strtoll() 112 acc += c; in strtoll() 117 acc = neg ? LLONG_MIN : LLONG_MAX; in strtoll() 120 acc = -acc; in strtoll() 126 return acc; in strtoll()
|
/Zephyr-latest/tests/arch/arc/arc_dsp_sharing/src/ |
D | calculation_arc.c | 59 v2accum32_t acc = {0, 0}; in calculate_low() local 62 acc = fx_v2a32_cmac_cq15(acc, cq15_a[i], cq15_b[i]); in calculate_low() 65 res[0] = fx_q15_cast_asl_rnd_a32(fx_get_v2a32(acc, 0), 15); in calculate_low() 66 res[1] = fx_q15_cast_asl_rnd_a32(fx_get_v2a32(acc, 1), 15); in calculate_low() 90 v2accum32_t acc = {0, 0}; in calculate_high() local 93 acc = fx_v2a32_cmac_cq15(acc, cq15_a[i], cq15_b[i]); in calculate_high() 108 res[0] = fx_q15_cast_asl_rnd_a32(fx_get_v2a32(acc, 0), 15); in calculate_high() 109 res[1] = fx_q15_cast_asl_rnd_a32(fx_get_v2a32(acc, 1), 15); in calculate_high()
|
/Zephyr-latest/samples/subsys/zbus/msg_subscriber/src/ |
D | main.c | 56 const struct acc_msg *acc = zbus_chan_const_msg(chan); in listener_callback_example() local 58 LOG_INF("From listener foo_lis -> Acc x=%d, y=%d, z=%d", acc->x, acc->y, acc->z); in listener_callback_example() 87 struct acc_msg acc; in msg_subscriber_task() local 91 while (!zbus_sub_wait_msg(subscriber, &chan, &acc, K_FOREVER)) { in msg_subscriber_task() 98 acc.x, acc.y, acc.z); in msg_subscriber_task() 139 struct acc_msg acc; in subscriber_task() local 149 zbus_chan_read(chan, &acc, K_MSEC(250)); in subscriber_task() 152 acc.x, acc.y, acc.z); in subscriber_task() 170 static struct acc_msg acc = {.x = 1, .y = 10, .z = 100}; variable 202 zbus_chan_pub(&acc_data_chan, &acc, K_NO_WAIT); in main() [all …]
|
/Zephyr-latest/samples/subsys/zbus/runtime_obs_registration/src/ |
D | consumer.c | 18 struct sensor_msg acc; in consumer_subscriber_thread() local 20 zbus_chan_read(chan, &acc, K_MSEC(500)); in consumer_subscriber_thread() 21 LOG_INF(" --> Consuming data: Acc x=%d, y=%d, z=%d", acc.x, acc.y, acc.z); in consumer_subscriber_thread()
|
D | producer.c | 18 struct sensor_msg acc = {0}; in producer_thread() local 29 ++acc.x; in producer_thread() 30 ++acc.y; in producer_thread() 31 ++acc.z; in producer_thread() 35 zbus_chan_pub(&raw_data_chan, &acc, K_MSEC(200)); in producer_thread()
|
/Zephyr-latest/samples/sensor/bmi270/src/ |
D | main.c | 15 struct sensor_value acc[3], gyr[3]; in main() local 74 sensor_channel_get(dev, SENSOR_CHAN_ACCEL_XYZ, acc); in main() 79 acc[0].val1, acc[0].val2, in main() 80 acc[1].val1, acc[1].val2, in main() 81 acc[2].val1, acc[2].val2, in main()
|
/Zephyr-latest/drivers/sensor/nordic/qdec_nrfx/ |
D | qdec_nrfx.c | 30 int32_t acc; member 45 static void accumulate(struct qdec_nrfx_data *data, int32_t acc) in accumulate() argument 49 bool overflow = ((acc > 0) && (ACC_MAX - acc < data->acc)) || in accumulate() 50 ((acc < 0) && (ACC_MIN - acc > data->acc)); in accumulate() 53 data->acc += acc; in accumulate() 66 int32_t acc; in qdec_nrfx_sample_fetch() local 73 nrfx_qdec_accumulators_read(&config->qdec, &acc, &accdbl); in qdec_nrfx_sample_fetch() 75 accumulate(data, acc); in qdec_nrfx_sample_fetch() 79 data->fetched_acc = data->acc; in qdec_nrfx_sample_fetch() 80 data->acc = 0; in qdec_nrfx_sample_fetch() [all …]
|
/Zephyr-latest/samples/subsys/zbus/hello_world/src/ |
D | main.c | 68 const struct acc_msg *acc = zbus_chan_const_msg(chan); in listener_callback_example() local 70 LOG_INF("From listener -> Acc x=%d, y=%d, z=%d", acc->x, acc->y, acc->z); in listener_callback_example() 82 struct acc_msg acc; in subscriber_task() local 85 zbus_chan_read(&acc_data_chan, &acc, K_MSEC(500)); in subscriber_task() 87 LOG_INF("From subscriber -> Acc x=%d, y=%d, z=%d", acc.x, acc.y, acc.z); in subscriber_task()
|
/Zephyr-latest/drivers/input/ |
D | input_gpio_qdec.c | 42 int32_t acc; member 202 data->acc += delta; in gpio_qdec_sample_timer_timeout() 205 if (abs(data->acc) >= cfg->steps_per_period) { in gpio_qdec_sample_timer_timeout() 219 int32_t acc; in gpio_qdec_event_worker() local 222 acc = data->acc / cfg->steps_per_period; in gpio_qdec_event_worker() 223 data->acc -= acc * cfg->steps_per_period; in gpio_qdec_event_worker() 226 if (acc != 0) { in gpio_qdec_event_worker() 227 input_report_rel(data->dev, cfg->axis, acc, true, K_FOREVER); in gpio_qdec_event_worker() 380 data->acc = 0; in gpio_qdec_pm_action()
|
/Zephyr-latest/drivers/sensor/st/lis2du12/ |
D | lis2du12.c | 214 data->acc[0] = xl_data.xl.raw[0]; in lis2du12_sample_fetch_accel() 215 data->acc[1] = xl_data.xl.raw[1]; in lis2du12_sample_fetch_accel() 216 data->acc[2] = xl_data.xl.raw[2]; in lis2du12_sample_fetch_accel() 260 lis2du12_accel_convert(val, data->acc[0], sensitivity); in lis2du12_accel_get_channel() 263 lis2du12_accel_convert(val, data->acc[1], sensitivity); in lis2du12_accel_get_channel() 266 lis2du12_accel_convert(val, data->acc[2], sensitivity); in lis2du12_accel_get_channel() 270 lis2du12_accel_convert(val++, data->acc[i], sensitivity); in lis2du12_accel_get_channel()
|
/Zephyr-latest/drivers/sensor/st/iis3dhhc/ |
D | iis3dhhc.c | 32 data->acc[0] = raw_accel[0]; in iis3dhhc_sample_fetch() 33 data->acc[1] = raw_accel[1]; in iis3dhhc_sample_fetch() 34 data->acc[2] = raw_accel[2]; in iis3dhhc_sample_fetch() 75 iis3dhhc_convert(pval++, iis3dhhc->acc[i]); in iis3dhhc_channel_get_acc()
|
D | iis3dhhc.h | 35 int16_t acc[3]; member
|
/Zephyr-latest/drivers/sensor/st/iis2dh/ |
D | iis2dh.c | 141 iis2dh_convert(pval++, iis2dh->acc[i], iis2dh->gain); in iis2dh_channel_get_acc() 215 iis2dh->acc[0] = buf[0]; in iis2dh_sample_fetch() 216 iis2dh->acc[1] = buf[1]; in iis2dh_sample_fetch() 217 iis2dh->acc[2] = buf[2]; in iis2dh_sample_fetch()
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/ |
D | README.rst | 61 10:: lsm6dso16is acc trig 3892 62 10:: lsm6dsv16x acc trig 4412 64 10:: lis2duxs12 acc trig 3681
|
/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12.c | 168 if (lis2de12_acceleration_raw_get(ctx, data->acc) < 0) { in lis2de12_sample_fetch_accel() 239 lis2de12_accel_convert(val, data->acc[0], sensitivity); in lis2de12_accel_get_channel() 242 lis2de12_accel_convert(val, data->acc[1], sensitivity); in lis2de12_accel_get_channel() 245 lis2de12_accel_convert(val, data->acc[2], sensitivity); in lis2de12_accel_get_channel() 249 lis2de12_accel_convert(val++, data->acc[i], sensitivity); in lis2de12_accel_get_channel()
|
D | lis2de12.h | 64 int16_t acc[3]; member
|
/Zephyr-latest/drivers/sensor/st/lsm9ds1/ |
D | lsm9ds1.h | 44 int16_t acc[3]; member
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x_rtio.c | 54 rc = lsm6dsv16x_acceleration_raw_get(ctx, edata->acc); in lsm6dsv16x_submit_sample() 86 rc = lsm6dsv16x_acceleration_raw_get(ctx, edata->acc); in lsm6dsv16x_submit_sample()
|
D | lsm6dsv16x_decoder.h | 45 int16_t acc[3]; member
|
/Zephyr-latest/drivers/sensor/st/iis328dq/ |
D | iis328dq.h | 63 int16_t acc[3]; member
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx.c | 311 data->acc[0] = buf[0]; in ism330dhcx_sample_fetch_accel() 312 data->acc[1] = buf[1]; in ism330dhcx_sample_fetch_accel() 313 data->acc[2] = buf[2]; in ism330dhcx_sample_fetch_accel() 419 ism330dhcx_accel_convert(val, data->acc[0], sensitivity); in ism330dhcx_accel_get_channel() 422 ism330dhcx_accel_convert(val, data->acc[1], sensitivity); in ism330dhcx_accel_get_channel() 425 ism330dhcx_accel_convert(val, data->acc[2], sensitivity); in ism330dhcx_accel_get_channel() 429 ism330dhcx_accel_convert(val++, data->acc[i], sensitivity); in ism330dhcx_accel_get_channel()
|
/Zephyr-latest/drivers/sensor/st/iis2dlpc/ |
D | iis2dlpc.c | 117 iis2dlpc_convert(pval++, iis2dlpc->acc[i], iis2dlpc->gain); in iis2dlpc_channel_get_acc() 246 iis2dlpc->acc[0] = buf[0] >> shift; in iis2dlpc_sample_fetch() 247 iis2dlpc->acc[1] = buf[1] >> shift; in iis2dlpc_sample_fetch() 248 iis2dlpc->acc[2] = buf[2] >> shift; in iis2dlpc_sample_fetch()
|