MPPT

Struct MPPT 

Source
pub struct MPPT {
Show 20 fields pub channel1_voltage: f32, pub panel_voltage: f32, pub panel_power: i32, pub battery_current: f32, pub load_current: f32, pub load_output_state: bool, pub relay_state: Option<bool>, pub off_reason: OffReason, pub yield_total: i32, pub yield_today: i32, pub max_power_today: i32, pub yield_yesterday: i32, pub max_power_yesterday: i32, pub error_code: ErrorCode, pub state_of_operation: StateOfOperation, pub firmware: u16, pub product_id: String, pub serial_number: String, pub day_sequence: u16, pub tracker_mode: TrackerOperationMode,
}
Expand description

Data for all MPPT solar charge controller

Fields§

§channel1_voltage: f32§panel_voltage: f32§panel_power: i32§battery_current: f32§load_current: f32§load_output_state: bool§relay_state: Option<bool>§off_reason: OffReason§yield_total: i32§yield_today: i32§max_power_today: i32§yield_yesterday: i32§max_power_yesterday: i32§error_code: ErrorCode§state_of_operation: StateOfOperation§firmware: u16§product_id: String§serial_number: String§day_sequence: u16§tracker_mode: TrackerOperationMode

Trait Implementations§

Source§

impl Debug for MPPT

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for MPPT

§

impl RefUnwindSafe for MPPT

§

impl Send for MPPT

§

impl Sync for MPPT

§

impl Unpin for MPPT

§

impl UnwindSafe for MPPT

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.