pub struct DacBuilder {
pub dac: DAC1,
pub ch1_pin: PA4,
pub ch2_pin: PA5,
}Expand description
dac builder
Fields§
§dac: DAC1dac device
ch1_pin: PA4dac ch1 pin
ch2_pin: PA5dac ch2 pin
Implementations§
Source§impl DacBuilder
custom method
impl DacBuilder
custom method
Sourcepub fn build<DmaCh1, DmaCh2>(
self,
dma_ch1: impl Peripheral<P = DmaCh1> + 'static,
dma_ch2: impl Peripheral<P = DmaCh2> + 'static,
) -> Dac<'static, DAC1, DmaCh1, DmaCh2>
pub fn build<DmaCh1, DmaCh2>( self, dma_ch1: impl Peripheral<P = DmaCh1> + 'static, dma_ch2: impl Peripheral<P = DmaCh2> + 'static, ) -> Dac<'static, DAC1, DmaCh1, DmaCh2>
Create a new Dac instance, more see Dac::new
Sourcepub fn build_dma_ch1<DmaCh1>(
self,
dma_ch1: impl Peripheral<P = DmaCh1> + 'static,
) -> Dac<'static, DAC1, DmaCh1>
pub fn build_dma_ch1<DmaCh1>( self, dma_ch1: impl Peripheral<P = DmaCh1> + 'static, ) -> Dac<'static, DAC1, DmaCh1>
dma_ch2 using NoDma Create a new Dac instance, more see Dac::new
Sourcepub fn build_dma_ch2<DmaCh2>(
self,
dma_ch2: impl Peripheral<P = DmaCh2> + 'static,
) -> Dac<'static, DAC1, NoDma, DmaCh2>
pub fn build_dma_ch2<DmaCh2>( self, dma_ch2: impl Peripheral<P = DmaCh2> + 'static, ) -> Dac<'static, DAC1, NoDma, DmaCh2>
dma_ch1 using NoDma Create a new Dac instance, more see Dac::new
Sourcepub fn build_no_dma(self) -> Dac<'static, DAC1>
pub fn build_no_dma(self) -> Dac<'static, DAC1>
using NoDma Create a new Dac instance, more see Dac::new
Auto Trait Implementations§
impl Freeze for DacBuilder
impl RefUnwindSafe for DacBuilder
impl Send for DacBuilder
impl Sync for DacBuilder
impl Unpin for DacBuilder
impl UnwindSafe for DacBuilder
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