[−][src]Struct probe_rs::probe::stlink::STLink
Methods
impl STLink
[src]
pub fn get_target_voltage(&mut self) -> Result<f32, DebugProbeError>
[src]
Reads the target voltage. For the china fake variants this will always read a nonzero value!
pub fn set_swd_frequency(
&mut self,
frequency: SwdFrequencyToDelayCount
) -> Result<(), DebugProbeError>
[src]
&mut self,
frequency: SwdFrequencyToDelayCount
) -> Result<(), DebugProbeError>
sets the SWD frequency.
pub fn set_jtag_frequency(
&mut self,
frequency: JTagFrequencyToDivider
) -> Result<(), DebugProbeError>
[src]
&mut self,
frequency: JTagFrequencyToDivider
) -> Result<(), DebugProbeError>
Sets the JTAG frequency.
pub fn open_ap(&mut self, apsel: impl AccessPort) -> Result<(), DebugProbeError>
[src]
pub fn close_ap(
&mut self,
apsel: impl AccessPort
) -> Result<(), DebugProbeError>
[src]
&mut self,
apsel: impl AccessPort
) -> Result<(), DebugProbeError>
pub fn drive_nreset(&mut self, is_asserted: bool) -> Result<(), DebugProbeError>
[src]
Drives the nRESET pin.
is_asserted
tells wheter the reset should be asserted or deasserted.
Trait Implementations
impl DAPAccess for STLink
[src]
fn read_register(
&mut self,
port: Port,
addr: u16
) -> Result<u32, DebugProbeError>
[src]
&mut self,
port: Port,
addr: u16
) -> Result<u32, DebugProbeError>
Reads the DAP register on the specified port and address.
fn write_register(
&mut self,
port: Port,
addr: u16,
value: u32
) -> Result<(), DebugProbeError>
[src]
&mut self,
port: Port,
addr: u16,
value: u32
) -> Result<(), DebugProbeError>
Writes a value to the DAP register on the specified port and address.
fn read_block(
&mut self,
port: Port,
addr: u16,
values: &mut [u32]
) -> Result<(), DebugProbeError>
[src]
&mut self,
port: Port,
addr: u16,
values: &mut [u32]
) -> Result<(), DebugProbeError>
fn write_block(
&mut self,
port: Port,
addr: u16,
values: &[u32]
) -> Result<(), DebugProbeError>
[src]
&mut self,
port: Port,
addr: u16,
values: &[u32]
) -> Result<(), DebugProbeError>
impl DebugProbe for STLink
[src]
fn new_from_probe_info(
info: &DebugProbeInfo
) -> Result<Box<Self>, DebugProbeError> where
Self: Sized,
[src]
info: &DebugProbeInfo
) -> Result<Box<Self>, DebugProbeError> where
Self: Sized,
fn get_name(&self) -> &str
[src]
fn attach(
&mut self,
protocol: Option<WireProtocol>
) -> Result<WireProtocol, DebugProbeError>
[src]
&mut self,
protocol: Option<WireProtocol>
) -> Result<WireProtocol, DebugProbeError>
Enters debug mode.
fn detach(&mut self) -> Result<(), DebugProbeError>
[src]
Leave debug mode.
fn target_reset(&mut self) -> Result<(), DebugProbeError>
[src]
Asserts the nRESET pin.
impl Drop for STLink
[src]
Auto Trait Implementations
impl RefUnwindSafe for STLink
impl Send for STLink
impl Sync for STLink
impl Unpin for STLink
impl UnwindSafe for STLink
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,