mirror of
https://github.com/ruvnet/RuView
synced 2026-08-09 20:21:43 +00:00
feat: complete vendor repos, add edge intelligence and WASM modules
- Add 154 missing vendor files (gitignore was filtering them) - vendor/midstream: 564 files (was 561) - vendor/sublinear-time-solver: 1190 files (was 1039) - Add ESP32 edge processing (ADR-039): presence, vitals, fall detection - Add WASM programmable sensing (ADR-040/041) with wasm3 runtime - Add firmware CI workflow (.github/workflows/firmware-ci.yml) - Add wifi-densepose-wasm-edge crate for edge WASM modules - Update sensing server, provision.py, UI components Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* @file power_mgmt.h
|
||||
* @brief Power management for battery-powered ESP32-S3 CSI nodes.
|
||||
*
|
||||
* Implements light sleep between CSI collection bursts to reduce
|
||||
* power consumption for battery-powered deployments.
|
||||
*/
|
||||
|
||||
#ifndef POWER_MGMT_H
|
||||
#define POWER_MGMT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "esp_err.h"
|
||||
|
||||
/**
|
||||
* Initialize power management.
|
||||
* Configures automatic light sleep when WiFi is idle.
|
||||
*
|
||||
* @param duty_cycle_pct Active duty cycle percentage (10-100).
|
||||
* 100 = always on (default behavior).
|
||||
* 50 = active 50% of the time.
|
||||
* @return ESP_OK on success.
|
||||
*/
|
||||
esp_err_t power_mgmt_init(uint8_t duty_cycle_pct);
|
||||
|
||||
/**
|
||||
* Get current power management statistics.
|
||||
*
|
||||
* @param active_ms Output: total active time in ms.
|
||||
* @param sleep_ms Output: total sleep time in ms.
|
||||
* @param wake_count Output: number of wake events.
|
||||
*/
|
||||
void power_mgmt_stats(uint32_t *active_ms, uint32_t *sleep_ms, uint32_t *wake_count);
|
||||
|
||||
#endif /* POWER_MGMT_H */
|
||||
Reference in New Issue
Block a user