STRUCT PWM_CAPTURE(9)
π struct pwm_capture(9) π
okay so welcome to the Kernel API Manual page for struct pwm_capture, bestie π«Ά. This is the little data holder for PWM capture data, and itβs honestly giving βtiny but iconic.β No cap.
πΈ NAME πΈ
struct pwm_capture β PWM capture data. Thatβs the whole name-and-description situation, periodt π
.
β¨ SYNOPSIS β¨
Hereβs the struct in all its exact glory:
struct pwm_capture {
unsigned int period;
unsigned int duty_cycle;
};
π§ Members π§
periodβ period of the PWM signal (in nanoseconds) β±οΈβ¨duty_cycleβ duty cycle of the PWM signal (in nanoseconds) π
Both members are measured in nanoseconds, iykyk. That detail is literally in the labels, bestie.
π SEE ALSO π
Kernel file ./include/linux/pwm.h is the home base, and hereβs the whole squad:
enum pwm_polarity(9)struct pwm_args(9)struct pwm_waveform(9)struct pwm_device(9)pwm_get_state(9)pwm_init_state(9)pwm_get_relative_duty_cycle(9)pwm_set_relative_duty_cycle(9)struct pwm_ops(9)struct pwm_chip(9)pwmchip_supports_waveform(9)pwm_config(9)pwm_enable(9)pwm_disable(9)pwm_might_sleep(9)
mwah π source/version line says ./include/linux, date is October 2026, and the title on the original footer is struct pwm_capture(9). Bye bestie, slay your PWM journey ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms