传感器控制 Trait
| 131 | |
| 132 | /// 传感器控制 Trait |
| 133 | pub trait SensorControl: Send + Sync { |
| 134 | fn set_exposure(&self, value_us: u32) -> Result<()>; |
| 135 | fn get_exposure(&self) -> Result<u32>; |
| 136 | // ... Gain, WhiteBalance 可以在此扩展 |
| 137 | } |
| 138 | |
| 139 | /// 镜头控制 Trait (允许并发操作,不阻塞 Sensor) |
| 140 | pub trait LensControl: Send + Sync { |
nothing calls this directly
no outgoing calls
no test coverage detected