pub struct WchLink {
pub info: ProbeInfo,
/* private fields */
}Expand description
Abstraction of WchLink probe interface
Fields§
§info: ProbeInfoImplementations§
Source§impl WchLink
impl WchLink
pub fn open_nth(nth: usize) -> Result<Self>
pub fn probe_info(&mut self) -> Result<ProbeInfo>
pub fn list_probes() -> Result<()>
Sourcepub fn switch_from_rv_to_dap(nth: usize) -> Result<()>
pub fn switch_from_rv_to_dap(nth: usize) -> Result<()>
Switch from DAP mode to RV mode
pub fn switch_from_dap_to_rv(nth: usize) -> Result<()>
pub fn set_power_output_enabled(nth: usize, cmd: SetPower) -> Result<()>
pub fn send_command<C: Command>(&mut self, cmd: C) -> Result<C::Response>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WchLink
impl !RefUnwindSafe for WchLink
impl !Send for WchLink
impl !Sync for WchLink
impl Unpin for WchLink
impl UnsafeUnpin for WchLink
impl !UnwindSafe for WchLink
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