pub struct DacCh1Builder {
pub dac: DAC1,
pub ch1_pin: PA4,
}Expand description
dac ch1 builder
Fields§
§dac: DAC1dac device
ch1_pin: PA4dac ch1 pin
Implementations§
Source§impl DacCh1Builder
custom method
impl DacCh1Builder
custom method
Sourcepub fn build<DMA>(
self,
dma: impl Peripheral<P = DMA> + 'static,
) -> DacCh1<'static, DAC1, DMA>
pub fn build<DMA>( self, dma: impl Peripheral<P = DMA> + 'static, ) -> DacCh1<'static, DAC1, DMA>
Create a new DacChannel instance, more see DacCh1::new
Sourcepub fn build_no_dma(self) -> DacCh1<'static, DAC1>
pub fn build_no_dma(self) -> DacCh1<'static, DAC1>
using NoDma create a new DacChannel instance, more see DacCh1::new
Auto Trait Implementations§
impl Freeze for DacCh1Builder
impl RefUnwindSafe for DacCh1Builder
impl Send for DacCh1Builder
impl Sync for DacCh1Builder
impl Unpin for DacCh1Builder
impl UnwindSafe for DacCh1Builder
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