Function kernel::pwm::create_pwm_ops

source ·
pub const fn create_pwm_ops<T: PwmOps>() -> PwmOpsVTable
Expand description

Creates a PWM operations vtable for a type T that implements PwmOps.

This is used to bridge Rust trait implementations to the C struct pwm_ops expected by the kernel.