We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ea7435 + e147211 commit 42715f3Copy full SHA for 42715f3
embedded-hal/src/pwm.rs
@@ -74,7 +74,9 @@ pub trait SetDutyCycle: ErrorType {
74
/// Set the duty cycle to `duty / max_duty`.
75
///
76
/// The caller is responsible for ensuring that the duty cycle value is less than or equal to the maximum duty cycle value,
77
- /// as reported by `get_max_duty`.
+ /// as reported by [`max_duty_cycle`].
78
+ ///
79
+ /// [`max_duty_cycle`]: SetDutyCycle::max_duty_cycle
80
fn set_duty_cycle(&mut self, duty: u16) -> Result<(), Self::Error>;
81
82
/// Set the duty cycle to 0%, or always inactive.
0 commit comments