Enum avr_hal_generic::simple_pwm::PwmError
source · pub enum PwmError {
DutyCycleTooLarge,
}
Variants§
DutyCycleTooLarge
embedded-hal
supports duty cycles up to u16
, however avr
devices only support up to u8
.
Passing a duty cycle larger than u8::MAX
will result in this error.
Trait Implementations§
source§impl Ord for PwmError
impl Ord for PwmError
source§impl PartialEq for PwmError
impl PartialEq for PwmError
source§impl PartialOrd for PwmError
impl PartialOrd for PwmError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PwmError
impl Eq for PwmError
impl StructuralPartialEq for PwmError
Auto Trait Implementations§
impl Freeze for PwmError
impl RefUnwindSafe for PwmError
impl Send for PwmError
impl Sync for PwmError
impl Unpin for PwmError
impl UnwindSafe for PwmError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more