pub struct Fmac<'d, T: Instance> { /* private fields */ }Expand description
FMAC driver
Implementations§
Source§impl<'d, T: Instance> Fmac<'d, T>
impl<'d, T: Instance> Fmac<'d, T>
Sourcepub fn fir(
peri: Peri<'d, T>,
config: Config,
input: Option<&[Q16<15>]>,
feedforward: &[Q16<15>],
gain: Gain,
) -> Self
pub fn fir( peri: Peri<'d, T>, config: Config, input: Option<&[Q16<15>]>, feedforward: &[Q16<15>], gain: Gain, ) -> Self
Convolution/FIR filter
y = gain * (feedforward ⋅ input)
Note: The 0th elements are the newest, and the n-1nth is the oldest
Sourcepub fn iir(
peri: Peri<'d, T>,
config: Config,
input: Option<&[Q16<15>]>,
feedforward: &[Q16<15>],
feedback: &[Q16<15>],
output: Data<'_>,
gain: Gain,
) -> Self
pub fn iir( peri: Peri<'d, T>, config: Config, input: Option<&[Q16<15>]>, feedforward: &[Q16<15>], feedback: &[Q16<15>], output: Data<'_>, gain: Gain, ) -> Self
IIR filter
y = gain * (feedforward ⋅ input) + (feedback ⋅ previous_outputs)
Note: The 0th elements are the newest, and the n-1nth is the oldest
Sourcepub fn controller_2p2z(
peri: Peri<'d, T>,
config: Config,
input: Option<&[Q16<15>; 3]>,
a: [Q16<15>; 2],
b: [Q16<15>; 3],
output: Option<[Q16<15>; 2]>,
gain: Gain,
) -> Self
pub fn controller_2p2z( peri: Peri<'d, T>, config: Config, input: Option<&[Q16<15>; 3]>, a: [Q16<15>; 2], b: [Q16<15>; 3], output: Option<[Q16<15>; 2]>, gain: Gain, ) -> Self
2p2z controller
Auto Trait Implementations§
impl<'d, T> Freeze for Fmac<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for Fmac<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Fmac<'d, T>where
T: Send,
impl<'d, T> Sync for Fmac<'d, T>where
T: Sync,
impl<'d, T> Unpin for Fmac<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Fmac<'d, T>
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
Source§impl<T> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.