Trait bmw::gauge::GaugeAdvance
source · [−]pub trait GaugeAdvance: GaugeBase {
fn get_time_to_full(&self) -> Result<u32> { ... }
fn get_time_to_empty(&self) -> Result<u32> { ... }
fn get_cycle_count(&self) -> Result<u32> { ... }
}
Expand description
A gauge chip will provide more sysfs interface for the application which include time_to_full, time_to_empty and cycle_count value.
GaugeAdvance
trait implement the get functions for all the above info and
implement the GaugeBase
trait as dependenc.
Additionally, BMW provides a procedural macro called GaugeAdv
to
automatically generate GaugeAdvance
implementations for structs in your
program.