STRUCT PWM_CAPTURE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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