Enum wlink::WchLinkVariant
source · #[repr(u8)]pub enum WchLinkVariant {
Ch549 = 1,
ECh32v305 = 2,
SCh32v203 = 3,
WCh32v208 = 5,
}Expand description
All WCH-Link probe variants, see-also: http://www.wch-ic.com/products/WCH-Link.html
Variants§
Ch549 = 1
WCH-Link-CH549, does not support CH32V00X
ECh32v305 = 2
WCH-LinkE-CH32V305
SCh32v203 = 3
WCH-LinkS-CH32V203
WCh32v208 = 5
WCH-LinkW-CH32V208
Implementations§
source§impl WchLinkVariant
impl WchLinkVariant
pub fn try_from_u8(value: u8) -> Result<Self>
sourcepub fn support_switch_mode(&self) -> bool
pub fn support_switch_mode(&self) -> bool
CH549 variant does not support mode switch. re-program is needed.
sourcepub fn support_power_funcs(&self) -> bool
pub fn support_power_funcs(&self) -> bool
Only W, E mode support this, power functions
sourcepub fn support_chip(&self, chip: RiscvChip) -> bool
pub fn support_chip(&self, chip: RiscvChip) -> bool
Better use E variant, the Old CH549-based variant does not support all chips
Trait Implementations§
source§impl Clone for WchLinkVariant
impl Clone for WchLinkVariant
source§fn clone(&self) -> WchLinkVariant
fn clone(&self) -> WchLinkVariant
Returns a copy 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 moresource§impl Debug for WchLinkVariant
impl Debug for WchLinkVariant
source§impl Display for WchLinkVariant
impl Display for WchLinkVariant
source§impl PartialEq for WchLinkVariant
impl PartialEq for WchLinkVariant
source§fn eq(&self, other: &WchLinkVariant) -> bool
fn eq(&self, other: &WchLinkVariant) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for WchLinkVariant
impl Eq for WchLinkVariant
impl StructuralEq for WchLinkVariant
impl StructuralPartialEq for WchLinkVariant
Auto Trait Implementations§
impl RefUnwindSafe for WchLinkVariant
impl Send for WchLinkVariant
impl Sync for WchLinkVariant
impl Unpin for WchLinkVariant
impl UnwindSafe for WchLinkVariant
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