pub struct Pipe0<'d, T: Instance> { /* private fields */ }Expand description
Handle to DCMIPP Pipe0 (raw dump). Obtained from Dcmipp::split.
Implementations§
Source§impl<'d, T: Instance> Pipe0<'d, T>
impl<'d, T: Instance> Pipe0<'d, T>
Sourcepub fn configure(&mut self, cfg: &Pipe0Config)
pub fn configure(&mut self, cfg: &Pipe0Config)
Configure Pipe0: source, VC, pitch, optional crop. Leaves the pipe disabled.
Sourcepub async fn capture(&mut self, buffer: *mut u8) -> Result<(), Error>
pub async fn capture(&mut self, buffer: *mut u8) -> Result<(), Error>
Arm a single-shot capture. buffer must be 16-byte aligned and at
least the configured frame size.
Sourcepub async fn wait_frame(&mut self) -> Result<u8, Error>
pub async fn wait_frame(&mut self) -> Result<u8, Error>
Wait for the next frame. Returns the buffer index (0 or 1) that was just filled.
Trait Implementations§
Auto Trait Implementations§
impl<'d, T> Freeze for Pipe0<'d, T>where
T: Freeze,
impl<'d, T> RefUnwindSafe for Pipe0<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for Pipe0<'d, T>
impl<'d, T> Sync for Pipe0<'d, T>where
T: Sync,
impl<'d, T> Unpin for Pipe0<'d, T>where
T: Unpin,
impl<'d, T> !UnwindSafe for Pipe0<'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