pub struct Mppt { /* private fields */ }
Expand description
MPPT device.
Implementations§
Source§impl Mppt
impl Mppt
Sourcepub fn receive(&mut self, frame: &Frame) -> Result<(), &'static str>
pub fn receive(&mut self, frame: &Frame) -> Result<(), &'static str>
Process an incoming message and update the device status as needed.
If the message identifier does not match the device, this returns Ok
.
Sourcepub fn set_maximum_output_voltage(&mut self, voltage: f32) -> Frame
pub fn set_maximum_output_voltage(&mut self, voltage: f32) -> Frame
Set the maximum output voltage of the MPPT.
Sourcepub fn set_maximum_input_current(&mut self, current: f32) -> Frame
pub fn set_maximum_input_current(&mut self, current: f32) -> Frame
Set the maximum input current of the MPPT.
Trait Implementations§
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> 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