pub enum DutyMode {
Linear,
SigmaDelta,
SigmaDelta2ndOrder,
}Expand description
How PCM is converted to a PWM compare value.
Variants§
Linear
Mid-scale duty plus linear scaling from PCM.
SigmaDelta
First-order sigma-delta noise shaping before duty mapping.
SigmaDelta2ndOrder
Second-order MASH/error-diffusion noise shaping for higher frequency attenuation.
Trait Implementations§
impl Copy for DutyMode
impl Eq for DutyMode
impl StructuralPartialEq for DutyMode
Auto Trait Implementations§
impl Freeze for DutyMode
impl RefUnwindSafe for DutyMode
impl Send for DutyMode
impl Sync for DutyMode
impl Unpin for DutyMode
impl UnsafeUnpin for DutyMode
impl UnwindSafe for DutyMode
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