From 02b2b86184ca00ff6a2a3e95c9fbfead6c0c4b3a Mon Sep 17 00:00:00 2001 From: bunnie Date: Wed, 4 Dec 2024 16:15:44 +0800 Subject: [PATCH] add notes for NTO rework --- libs/cramium-hal/src/ov2640/ov2640.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/cramium-hal/src/ov2640/ov2640.rs b/libs/cramium-hal/src/ov2640/ov2640.rs index bda70b80d..5bf82ddc1 100644 --- a/libs/cramium-hal/src/ov2640/ov2640.rs +++ b/libs/cramium-hal/src/ov2640/ov2640.rs @@ -215,6 +215,8 @@ impl Ov2640 { /// TODO: figure out how to length-bound this to...the frame slice size? line size? idk... pub unsafe fn rx_buf_phys(&self) -> &[T] { &self.ifram.as_ref().unwrap().as_phys_slice() } + /// TODO: Rework this to use the frame sync + automatic re-initiation on capture_await() for frames + /// TODO: Also make an interrupt driven version of this. pub fn capture_async(&mut self) { // we want the sliced resolution so resolve resolution through the method call wrapper let (cols, rows) = self.resolution();