pub struct PioClk<'d, T: Instance, const SM: usize> { /* private fields */ }Expand description
Pio backed clock generator
Implementations§
Source§impl<'d, T: Instance, const SM: usize> PioClk<'d, T, SM>
impl<'d, T: Instance, const SM: usize> PioClk<'d, T, SM>
Sourcepub fn new(
pio: &mut Common<'d, T>,
sm: StateMachine<'d, T, SM>,
pin: Peri<'d, impl PioPin>,
program: &PioClkProgram<'d, T>,
frequency: u32,
) -> Self
pub fn new( pio: &mut Common<'d, T>, sm: StateMachine<'d, T, SM>, pin: Peri<'d, impl PioPin>, program: &PioClkProgram<'d, T>, frequency: u32, ) -> Self
Configure state machine for clock generation
Sourcepub fn start_batched(&mut self, b: &mut PioBatch<'d, T>)
pub fn start_batched(&mut self, b: &mut PioBatch<'d, T>)
Start at the the same as other drivers
Sourcepub fn stop_batched(&mut self, b: &mut PioBatch<'d, T>)
pub fn stop_batched(&mut self, b: &mut PioBatch<'d, T>)
Stop at the the same as other drivers
Sourcepub fn release(self) -> (StateMachine<'d, T, SM>, Pin<'d, T>)
pub fn release(self) -> (StateMachine<'d, T, SM>, Pin<'d, T>)
Return the state machine and pin
Auto Trait Implementations§
impl<'d, T, const SM: usize> !UnwindSafe for PioClk<'d, T, SM>
impl<'d, T, const SM: usize> Freeze for PioClk<'d, T, SM>
impl<'d, T, const SM: usize> RefUnwindSafe for PioClk<'d, T, SM>
impl<'d, T, const SM: usize> Send for PioClk<'d, T, SM>
impl<'d, T, const SM: usize> Sync for PioClk<'d, T, SM>
impl<'d, T, const SM: usize> Unpin for PioClk<'d, T, SM>
impl<'d, T, const SM: usize> UnsafeUnpin for PioClk<'d, T, SM>
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