pub enum PowerProfile {
Aggressive,
Balanced,
LowPower,
Custom(RadioTiming),
}Expand description
Power profile presets for different use cases
Variants§
Aggressive
20% duty cycle, ~6 hour watch battery Use when low latency is critical (emergency response)
Balanced
10% duty cycle, ~12 hour watch battery Good balance between responsiveness and battery
LowPower
2% duty cycle, ~20+ hour watch battery Default for HIVE-Lite, prioritizes battery life
Custom(RadioTiming)
Custom profile with user-defined timing
Implementations§
Source§impl PowerProfile
impl PowerProfile
Sourcepub fn timing(&self) -> RadioTiming
pub fn timing(&self) -> RadioTiming
Get the radio timing for this profile
Sourcepub fn duty_cycle_percent(&self) -> f32
pub fn duty_cycle_percent(&self) -> f32
Get the duty cycle for this profile
Sourcepub fn estimated_battery_hours(&self, battery_capacity_mah: u16) -> f32
pub fn estimated_battery_hours(&self, battery_capacity_mah: u16) -> f32
Get estimated battery life in hours
Sourcepub fn custom(timing: RadioTiming) -> Self
pub fn custom(timing: RadioTiming) -> Self
Create a custom profile with specific timing
Trait Implementations§
Source§impl Clone for PowerProfile
impl Clone for PowerProfile
Source§fn clone(&self) -> PowerProfile
fn clone(&self) -> PowerProfile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PowerProfile
impl Debug for PowerProfile
Source§impl Default for PowerProfile
impl Default for PowerProfile
Source§fn default() -> PowerProfile
fn default() -> PowerProfile
Returns the “default value” for a type. Read more
Source§impl PartialEq for PowerProfile
impl PartialEq for PowerProfile
impl Copy for PowerProfile
impl Eq for PowerProfile
impl StructuralPartialEq for PowerProfile
Auto Trait Implementations§
impl Freeze for PowerProfile
impl RefUnwindSafe for PowerProfile
impl Send for PowerProfile
impl Sync for PowerProfile
impl Unpin for PowerProfile
impl UnwindSafe for PowerProfile
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