acme-camera: sync Powerctl types from code/src/main.rs

ee9fd58 · Gabriel Morell · 2026-10-13 18:38

3 files +23 -1

Files changed

modified content/presentations/acme-camera.md
+23 −1
@@ -176,13 +176,35 @@ Talks to MCU and sets/gets the motion detection and light settings
176 176 # Component: Powerctl
177 177
178 178 ```rust
179 −enum Power {
179 +enum PowerCtlMode {
180 + Detection{cooldown: u32},
181 + Timer{configs: Vec<TimerConfig>},
180 182 }
183 +
184 +struct TimerConfig {
185 + start_time: u64,
186 + end_time: u64,
187 + schedule_days: HashSet<Weekday>
188 +}
189 +
190 +enum Weekday { M, T, W, R, F, S, U }
181 191 ```
182 192
183 193 Note:
184 194 Collects power usage data, rundown and fuel guage from the PMIC
185 195
196 +--
197 +
198 +## Power Readings
199 +
200 +```rust
201 +struct PowerReading {
202 + raw: u64,
203 + calculated: f32,
204 + display: String,
205 +}
206 +```
207 +
186 208 ---
187 209
188 210 # Component: Portalctl

Parents: 40e5716