pub enum SourcePowerRangeDataObject {
Standard(StandardPowerRangeDataObject),
Extended(ExtendedPowerRangeDataObject),
}Expand description
Represents A wrapper for the underlying Power Range Data Objects The AP33772s supports both Standard and Extended Power Range Data Objects Individual functions are supplied for generic functionality between the two types
Variants§
Standard(StandardPowerRangeDataObject)
Extended(ExtendedPowerRangeDataObject)
Implementations§
Source§impl SourcePowerRangeDataObject
impl SourcePowerRangeDataObject
pub fn voltage_resolution(&self) -> u16
pub fn source_power_type(&self) -> PowerType
pub fn is_detected(&self) -> bool
pub fn get_max_voltage(&self) -> Result<ElectricPotential, Ap33772sError>
pub fn get_max_current(&self) -> SourceMaximumCurrent
pub fn get_min_voltage(&self) -> Result<ElectricPotential, Ap33772sError>
Trait Implementations§
Source§impl Clone for SourcePowerRangeDataObject
impl Clone for SourcePowerRangeDataObject
Source§fn clone(&self) -> SourcePowerRangeDataObject
fn clone(&self) -> SourcePowerRangeDataObject
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SourcePowerRangeDataObject
impl Debug for SourcePowerRangeDataObject
Source§impl Display for SourcePowerRangeDataObject
impl Display for SourcePowerRangeDataObject
Source§impl Format for SourcePowerRangeDataObject
Available on crate feature defmt only.
impl Format for SourcePowerRangeDataObject
Available on crate feature
defmt only.impl StructuralPartialEq for SourcePowerRangeDataObject
Auto Trait Implementations§
impl Freeze for SourcePowerRangeDataObject
impl RefUnwindSafe for SourcePowerRangeDataObject
impl Send for SourcePowerRangeDataObject
impl Sync for SourcePowerRangeDataObject
impl Unpin for SourcePowerRangeDataObject
impl UnsafeUnpin for SourcePowerRangeDataObject
impl UnwindSafe for SourcePowerRangeDataObject
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