ENUM PWM_POLARITY(9)
okay so bestie, welcome to the Kernel API Manual page for enum pwm_polarity(9) β itβs giving tiny enum, huge main-character energy π
β¨
π NAME π
enum pwm_polarityβ polarity of a PWM signal π
π¦ SYNOPSIS π¦
enum pwm_polarity {
PWM_POLARITY_NORMAL ,
PWM_POLARITY_INVERSED
};
πΈ Constants πΈ
okay so there are exactly two constants here, and they are literally opposites, no cap:
PWM_POLARITY_NORMALβ a high signal for the duration of the duty- cycle, followed by a low signal for the remainder of the pulse period. high then low, periodt π₯PWM_POLARITY_INVERSEDβ a low signal for the duration of the duty- cycle, followed by a high signal for the remainder of the pulse period. low then high, the flip side π
π SEE ALSO π
The kernel file is ./include/linux/pwm.h β thatβs where this lives, bestie π«Ά. Also go peek at all of these:
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_capture(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)
xoxo, source/version ./include/linux, dated October 2026 β slay and bye, bestie π
πβ¨
π¦ 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