[−][src]Struct probe_rs_rtt::Rtt
The RTT interface.
Use Rtt::attach
to attach to a probe-rs Core
and detect channels.
Implementations
impl Rtt
[src]
pub fn attach(session: Arc<Mutex<Session>>) -> Result<Rtt, Error>
[src]
Attempts to detect an RTT control block anywhere in the target RAM and returns an instance if a valid control block was found.
core
can be e.g. an owned Core
or a shared Rc<Core>
. The session is only borrowed
temporarily during detection.
pub fn attach_region(
session: Arc<Mutex<Session>>,
region: &ScanRegion
) -> Result<Rtt, Error>
[src]
session: Arc<Mutex<Session>>,
region: &ScanRegion
) -> Result<Rtt, Error>
Attempts to detect an RTT control block in the specified RAM region(s) and returns an instance if a valid control block was found.
core
can be e.g. an owned Core
or a shared Rc<Core>
. The session is only borrowed
temporarily during detection.
pub fn ptr(&self) -> u32
[src]
Returns the memory address of the control block in target memory.
pub fn up_channels(&mut self) -> &mut Channels<UpChannel>
[src]
Gets the detected up channels.
pub fn down_channels(&mut self) -> &mut Channels<DownChannel>
[src]
Gets the detected down channels.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rtt
[src]
impl !Send for Rtt
[src]
impl !Sync for Rtt
[src]
impl Unpin for Rtt
[src]
impl UnwindSafe for Rtt
[src]
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,
pub 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.
pub 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>,