pub enum BatteryLevel {
Empty = 0,
OneThird = 1,
TwoThirds = 2,
Full = 3,
Charging = 4,
}Expand description
Battery charge level (0-4).
Reported by the BL CAT command. Read-only on the TH-D75.
Menu No. 922 displays the battery level on the radio.
- 0 = Empty (Red)
- 1 = 1/3 (Yellow)
- 2 = 2/3 (Green)
- 3 = Full (Green)
- 4 = Charging (USB power connected)
Per User Manual Chapter 28: the supplied KNB-75LA is 1820 mAh, 7.4 V Li-ion. Battery life at TX:RX:standby = 6:6:48 ratio with GPS off and battery saver on: H=6 hrs, M=8 hrs, L=12 hrs, EL=15 hrs. GPS on reduces battery life by approximately 10%. The optional KBP-9 case uses 6x AAA alkaline batteries (Low power only, approximately 3.5 hours).
Variants§
Empty = 0
Empty — red battery indicator (index 0).
OneThird = 1
One-third — yellow battery indicator (index 1).
TwoThirds = 2
Two-thirds — green battery indicator (index 2).
Full = 3
Full — green battery indicator (index 3).
Charging = 4
Charging — USB power connected (index 4).
Implementations§
Trait Implementations§
Source§impl Clone for BatteryLevel
impl Clone for BatteryLevel
Source§fn clone(&self) -> BatteryLevel
fn clone(&self) -> BatteryLevel
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 BatteryLevel
impl Debug for BatteryLevel
Source§impl Display for BatteryLevel
impl Display for BatteryLevel
Source§impl From<BatteryLevel> for u8
impl From<BatteryLevel> for u8
Source§fn from(level: BatteryLevel) -> Self
fn from(level: BatteryLevel) -> Self
Converts to this type from the input type.
Source§impl Hash for BatteryLevel
impl Hash for BatteryLevel
Source§impl PartialEq for BatteryLevel
impl PartialEq for BatteryLevel
Source§impl TryFrom<u8> for BatteryLevel
impl TryFrom<u8> for BatteryLevel
impl Copy for BatteryLevel
impl Eq for BatteryLevel
impl StructuralPartialEq for BatteryLevel
Auto Trait Implementations§
impl Freeze for BatteryLevel
impl RefUnwindSafe for BatteryLevel
impl Send for BatteryLevel
impl Sync for BatteryLevel
impl Unpin for BatteryLevel
impl UnwindSafe for BatteryLevel
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