pub enum PowerDataObject {
Show 13 variants
StandardPowerRange1 = 1,
StandardPowerRange2 = 2,
StandardPowerRange3 = 3,
StandardPowerRange4 = 4,
StandardPowerRange5 = 5,
StandardPowerRange6 = 6,
StandardPowerRange7 = 7,
ExtendedPowerRange8 = 8,
ExtendedPowerRange9 = 9,
ExtendedPowerRange10 = 10,
ExtendedPowerRange11 = 11,
ExtendedPowerRange12 = 12,
ExtendedPowerRange13 = 13,
}Expand description
The Power Data Onject (PDO) represents the different power modes that are supported in the USB C Power Delivery Specificaiton for this chip AP33772S. The chip supports
With a Maximum Voltage of 21V
with a Maximum Voltage of 28V
7 Standard Power Ranges are provided along with 6 Extended Power Ranges. These are not gauranteed to be implemented by every charger
The underlying PowerDataObjects linked above provide a method is_detected() which outlines if it can be used
Variants§
StandardPowerRange1 = 1
StandardPowerRange2 = 2
StandardPowerRange3 = 3
StandardPowerRange4 = 4
StandardPowerRange5 = 5
StandardPowerRange6 = 6
StandardPowerRange7 = 7
ExtendedPowerRange8 = 8
ExtendedPowerRange9 = 9
ExtendedPowerRange10 = 10
ExtendedPowerRange11 = 11
ExtendedPowerRange12 = 12
ExtendedPowerRange13 = 13
Implementations§
Trait Implementations§
Source§impl Clone for PowerDataObject
impl Clone for PowerDataObject
Source§fn clone(&self) -> PowerDataObject
fn clone(&self) -> PowerDataObject
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 moreimpl Copy for PowerDataObject
Source§impl Debug for PowerDataObject
impl Debug for PowerDataObject
Source§impl Display for PowerDataObject
impl Display for PowerDataObject
Source§impl Format for PowerDataObject
impl Format for PowerDataObject
Source§impl From<PowerDataObject> for usize
impl From<PowerDataObject> for usize
Source§fn from(value: PowerDataObject) -> Self
fn from(value: PowerDataObject) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PowerDataObject
impl PartialEq for PowerDataObject
Source§impl PartialOrd for PowerDataObject
impl PartialOrd for PowerDataObject
impl StructuralPartialEq for PowerDataObject
Source§impl TryFrom<usize> for PowerDataObject
impl TryFrom<usize> for PowerDataObject
Auto Trait Implementations§
impl Freeze for PowerDataObject
impl RefUnwindSafe for PowerDataObject
impl Send for PowerDataObject
impl Sync for PowerDataObject
impl Unpin for PowerDataObject
impl UnsafeUnpin for PowerDataObject
impl UnwindSafe for PowerDataObject
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