Enum GpwrdnMultvalidbc
#[repr(u8)]pub enum GpwrdnMultvalidbc {
Show 32 variants
RID_0 = 0,
RID_C = 1,
RID_B = 2,
_RESERVED_3 = 3,
RID_A = 4,
_RESERVED_5 = 5,
_RESERVED_6 = 6,
_RESERVED_7 = 7,
RID_GND = 8,
_RESERVED_9 = 9,
_RESERVED_a = 10,
_RESERVED_b = 11,
RID_A_RID_GND = 12,
_RESERVED_d = 13,
_RESERVED_e = 14,
_RESERVED_f = 15,
RID_FLOAT = 16,
RID_C_RID_FLOAT = 17,
RID_B_RID_FLOAT = 18,
_RESERVED_13 = 19,
_RESERVED_14 = 20,
_RESERVED_15 = 21,
_RESERVED_16 = 22,
_RESERVED_17 = 23,
_RESERVED_18 = 24,
_RESERVED_19 = 25,
_RESERVED_1a = 26,
_RESERVED_1b = 27,
_RESERVED_1c = 28,
_RESERVED_1d = 29,
_RESERVED_1e = 30,
RID_1 = 31,
}Variants§
RID_0 = 0
OTG device as B-device
RID_C = 1
OTG device as B-device, can connect
RID_B = 2
OTG device as B-device, cannot connect
_RESERVED_3 = 3
RID_A = 4
OTG device as A-device
_RESERVED_5 = 5
_RESERVED_6 = 6
_RESERVED_7 = 7
RID_GND = 8
ID_OTG pin is grounded
_RESERVED_9 = 9
_RESERVED_a = 10
_RESERVED_b = 11
RID_A_RID_GND = 12
OTG device as A-device, RID_A=1 and RID_GND=1
_RESERVED_d = 13
_RESERVED_e = 14
_RESERVED_f = 15
RID_FLOAT = 16
ID pull down when ID_OTG is floating
RID_C_RID_FLOAT = 17
OTG device as B-device, can connect, RID_C=1 and RID_FLOAT=1
RID_B_RID_FLOAT = 18
OTG device as B-device, cannot connect, RID_B=1 and RID_FLOAT=1
_RESERVED_13 = 19
_RESERVED_14 = 20
_RESERVED_15 = 21
_RESERVED_16 = 22
_RESERVED_17 = 23
_RESERVED_18 = 24
_RESERVED_19 = 25
_RESERVED_1a = 26
_RESERVED_1b = 27
_RESERVED_1c = 28
_RESERVED_1d = 29
_RESERVED_1e = 30
RID_1 = 31
OTG device as A-device
Implementations§
§impl GpwrdnMultvalidbc
impl GpwrdnMultvalidbc
pub const fn from_bits(val: u8) -> GpwrdnMultvalidbc
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for GpwrdnMultvalidbc
impl Clone for GpwrdnMultvalidbc
§fn clone(&self) -> GpwrdnMultvalidbc
fn clone(&self) -> GpwrdnMultvalidbc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for GpwrdnMultvalidbc
impl Debug for GpwrdnMultvalidbc
§impl From<u8> for GpwrdnMultvalidbc
impl From<u8> for GpwrdnMultvalidbc
§fn from(val: u8) -> GpwrdnMultvalidbc
fn from(val: u8) -> GpwrdnMultvalidbc
Converts to this type from the input type.
§impl Ord for GpwrdnMultvalidbc
impl Ord for GpwrdnMultvalidbc
§fn cmp(&self, other: &GpwrdnMultvalidbc) -> Ordering
fn cmp(&self, other: &GpwrdnMultvalidbc) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for GpwrdnMultvalidbc
impl PartialEq for GpwrdnMultvalidbc
§impl PartialOrd for GpwrdnMultvalidbc
impl PartialOrd for GpwrdnMultvalidbc
impl Copy for GpwrdnMultvalidbc
impl Eq for GpwrdnMultvalidbc
impl StructuralPartialEq for GpwrdnMultvalidbc
Auto Trait Implementations§
impl Freeze for GpwrdnMultvalidbc
impl RefUnwindSafe for GpwrdnMultvalidbc
impl Send for GpwrdnMultvalidbc
impl Sync for GpwrdnMultvalidbc
impl Unpin for GpwrdnMultvalidbc
impl UnwindSafe for GpwrdnMultvalidbc
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.