Lines Matching +full:pulse +full:- +full:width
4 * SPDX-License-Identifier: Apache-2.0
20 uint8_t pulse; member
28 .pulse = 4,
37 uint32_t pulse; in cmd_cycles() local
44 return -EINVAL; in cmd_cycles()
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
77 return -EINVAL; in cmd_usec()
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
109 return -EINVAL; in cmd_nsec()
114 pulse = strtoul(argv[args_indx.pulse], NULL, 0); in cmd_nsec()
120 err = pwm_set(dev, channel, period, pulse, flags); in cmd_nsec()
138 entry->syntax = (dev != NULL) ? dev->name : NULL; in device_name_get()
139 entry->handler = NULL; in device_name_get()
140 entry->help = NULL; in device_name_get()
141 entry->subcmd = NULL; in device_name_get()
148 "<pulse width in cycles> [flags]", cmd_cycles, 5, 1),
150 "<pulse width in usec> [flags]", cmd_usec, 5, 1),
152 "<pulse width in nsec> [flags]", cmd_nsec, 5, 1),