Home
last modified time | relevance | path

Searched refs:pulse (Results 1 – 25 of 59) sorted by relevance

123

/Zephyr-latest/drivers/pwm/
Dpwm_shell.c20 uint8_t pulse; member
28 .pulse = 4,
37 uint32_t pulse; in cmd_cycles() local
49 pulse = strtoul(argv[args_indx.pulse], NULL, 0); in cmd_cycles()
55 err = pwm_set_cycles(dev, channel, period, pulse, flags); in cmd_cycles()
70 uint32_t pulse; in cmd_usec() local
82 pulse = strtoul(argv[args_indx.pulse], NULL, 0); in cmd_usec()
88 err = pwm_set(dev, channel, PWM_USEC(period), PWM_USEC(pulse), flags); in cmd_usec()
102 uint32_t pulse; in cmd_nsec() local
114 pulse = strtoul(argv[args_indx.pulse], NULL, 0); in cmd_nsec()
[all …]
Dpwm_capture.c16 uint32_t pulse; member
30 data->pulse = pulse_cycles; in z_pwm_capture_cycles_callback()
38 uint32_t *pulse, k_timeout_t timeout) in z_impl_pwm_capture_cycles() argument
77 if (pulse != NULL) { in z_impl_pwm_capture_cycles()
78 *pulse = data.pulse; in z_impl_pwm_capture_cycles()
Dpwm_handlers.c13 uint32_t pulse, pwm_flags_t flags) in z_vrfy_pwm_set_cycles() argument
17 period, pulse, flags); in z_vrfy_pwm_set_cycles()
57 uint32_t pulse; in z_vrfy_pwm_capture_cycles() local
65 flags, &period, &pulse, timeout); in z_vrfy_pwm_capture_cycles()
72 K_OOPS(k_usermode_to_copy(pulse_cycles, &pulse, in z_vrfy_pwm_capture_cycles()
Dpwm_cc13xx_cc26xx_timer.c59 uint32_t pulse) in set_period_and_pulse() argument
61 uint32_t match_value = pulse; in set_period_and_pulse()
63 if (pulse == 0U) { in set_period_and_pulse()
79 LOG_ERR("Period (%d) is shorter than pulse (%d).", period, pulse); in set_period_and_pulse()
87 if (pulse > 0U) { in set_period_and_pulse()
98 static int set_cycles(const struct device *dev, uint32_t channel, uint32_t period, uint32_t pulse, in set_cycles() argument
113 set_period_and_pulse(config, period, pulse); in set_cycles()
Dpwm_mcux_pwt.c197 uint32_t pulse; in mcux_pwt_calc_pulse() local
200 if (u32_mul_overflow(overflows, 0xFFFFU, &pulse)) { in mcux_pwt_calc_pulse()
205 if (u32_add_overflow(pulse, pw, &pulse)) { in mcux_pwt_calc_pulse()
209 *result = pulse; in mcux_pwt_calc_pulse()
219 uint32_t pulse = 0; in mcux_pwt_isr() local
249 &pulse); in mcux_pwt_isr()
252 &pulse); in mcux_pwt_isr()
266 LOG_DBG("period = %d, pulse = %d, err = %d", period, pulse, in mcux_pwt_isr()
271 period, pulse, err, data->user_data); in mcux_pwt_isr()
Dpwm_renesas_ra.c31 uint64_t pulse; member
134 uint32_t pulse; in pwm_renesas_ra_set_cycles() local
155 pulse = (flags & PWM_POLARITY_INVERTED) ? period_cycles - pulse_cycles : pulse_cycles; in pwm_renesas_ra_set_cycles()
173 err = R_GPT_DutyCycleSet(&data->fsp_ctrl, pulse, pin); in pwm_renesas_ra_set_cycles()
413 data->capture.pulse = in fsp_callback()
416 data->capture.pulse, 0, in fsp_callback()
/Zephyr-latest/samples/sensor/sgp40_sht4x/
DKconfig31 0 -> High power heater pulse -> ~200 mW @3.3V
32 1 -> Medium power heater pulse -> ~110 mW @3.3V
33 2 -> Low power heater pulse -> ~20 mW @3.3V
41 0 -> Long heater pulse -> 1.1s
42 1 -> Short heater pulse -> 0.11s
/Zephyr-latest/include/zephyr/drivers/
Dpwm.h480 uint32_t period, uint32_t pulse,
485 uint32_t pulse, pwm_flags_t flags) in z_impl_pwm_set_cycles() argument
490 if (pulse > period) { in z_impl_pwm_set_cycles()
494 return api->set_cycles(dev, channel, period, pulse, flags); in z_impl_pwm_set_cycles()
538 uint32_t period, uint32_t pulse, pwm_flags_t flags) in pwm_set() argument
555 pulse_cycles = (pulse * cycles_per_sec) / NSEC_PER_SEC; in pwm_set()
584 uint32_t pulse) in pwm_set_dt() argument
586 return pwm_set(spec->dev, spec->channel, period, pulse, spec->flags); in pwm_set_dt()
605 uint32_t pulse) in pwm_set_pulse_dt() argument
607 return pwm_set(spec->dev, spec->channel, spec->period, pulse, in pwm_set_pulse_dt()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max30101/
DKconfig87 pulse/conversion per active LED channel. In SpO2 mode, these means
88 one IR pulse/conversion and one red pulse/conversion per sample
100 hex "LED1 (red) pulse amplitude"
104 Set the pulse amplitude to control the LED1 (red) current. The actual
114 hex "LED2 (IR) pulse amplitude"
118 Set the pulse amplitude to control the LED2 (IR) current. The actual
128 hex "LED3 (green) pulse amplitude"
132 Set the pulse amplitude to control the LED3 (green) current. The
148 Set which LED and pulse amplitude are active in time slot 1.
163 Set which LED and pulse amplitude are active in time slot 2.
[all …]
/Zephyr-latest/samples/basic/servo_motor/boards/
Dbbc_microbit.overlay6 min-pulse = <PWM_USEC(700)>;
7 max-pulse = <PWM_USEC(2500)>;
Drddrone_fmuk66.overlay11 min-pulse = <PWM_USEC(700)>;
12 max-pulse = <PWM_USEC(2500)>;
Dmimxrt1062_fmurt6.overlay14 min-pulse = <PWM_USEC(700)>;
15 max-pulse = <PWM_USEC(2500)>;
/Zephyr-latest/tests/drivers/pwm/pwm_loopback/src/
Dtest_pwm_loopback.c38 static void test_capture(uint32_t period, uint32_t pulse, enum test_pwm_unit unit, in test_capture() argument
52 pulse, period); in test_capture()
53 err = pwm_set(out.dev, out.pwm, period, pulse, out.flags ^= in test_capture()
59 pulse, period); in test_capture()
61 PWM_USEC(pulse), out.flags ^= in test_capture()
103 zassert_within(pulse_capture, pulse, pulse / 100, in test_capture()
163 uint32_t pulse; in ZTEST_USER() local
172 &period, &pulse, K_MSEC(1000)); in ZTEST_USER()
178 &pulse, K_MSEC(1000)); in ZTEST_USER()
/Zephyr-latest/samples/sensor/proximity_polling/boards/
Dnrf52840dk_nrf52840.overlay15 proximity-pulse-length = <16>;
16 proximity-pulse-count = <15>;
/Zephyr-latest/tests/drivers/pwm/pwm_api/src/
Dtest_pwm.c122 static int test_task(uint32_t port, uint32_t period, uint32_t pulse, uint8_t unit) in test_task() argument
125 port, period, pulse); in test_task()
136 if (pwm_set_cycles(pwm_dev, port, period, pulse, 0)) { in test_task()
142 if (pwm_set(pwm_dev, port, period, pulse, 0)) { in test_task()
/Zephyr-latest/samples/basic/servo_motor/
DREADME.rst15 This app is targeted for servomotor ROB-09065. The corresponding PWM pulse
17 Different servomotors may require different PWM pulse widths, and you may need
34 min-pulse = <PWM_USEC(700)>;
35 max-pulse = <PWM_USEC(2500)>;
/Zephyr-latest/samples/drivers/misc/timeaware_gpio/
DREADME.rst13 1. Periodic pulse generation (an Oscilloscope or loopback may be required)
14 2. Input pulse timestamping (a pulse generator or loopback may be required)
/Zephyr-latest/drivers/led_strip/
DKconfig.ws28126 # The following blog post is an excellent resource about pulse timing:
53 int "Delay 1 bit high pulse"
63 int "Delay 1 bit low pulse"
73 int "Delay 0 bit high pulse"
83 int "Delay 0 bit low pulse"
/Zephyr-latest/drivers/gpio/
Dgpio_grgpio.h26 uint32_t pulse; /* 0x4C Pulse register */ member
DKconfig.pca95xx27 short-pulse interrupts due to its design.
DKconfig.pca_series30 short-pulse interrupts due to its design.
/Zephyr-latest/drivers/display/
Ddisplay_nrf_led_matrix.c301 uint16_t pulse = dev_data->framebuf[pixel_idx] * QUANTUM; in prepare_pixel_pulse() local
305 dev_data->seq[channel_idx] = pulse | (col_active_low ? 0 : BIT(15)); in prepare_pixel_pulse()
317 | ((pulse == 0 ? GPIOTE_CONFIG_OUTINIT_High in prepare_pixel_pulse()
323 | ((pulse == 0 ? GPIOTE_CONFIG_OUTINIT_Low in prepare_pixel_pulse()
329 nrf_timer_cc_set(dev_config->timer, 1 + channel_idx, pulse); in prepare_pixel_pulse()
/Zephyr-latest/drivers/sensor/nxp/fxos8700/
DKconfig88 Enable pulse detection
95 Say Y to route pulse interrupt to INT1 pin. Say N to route to INT2 pin.
/Zephyr-latest/boards/atmel/sam/sam4s_xplained/
Dsam4s_xplained.dts226 atmel,smc-pulse-timing = <6 6 6 6>;
236 atmel,smc-pulse-timing = <6 6 6 6>;
/Zephyr-latest/samples/drivers/led/is31fl3216a/
DREADME.rst15 Once each LED was pulsed, multiple LEDs are pulse simultaneously using the

123