[−][src]Enum probe_rs::architecture::arm::memory::Component
This enum describes a CoreSight component. Described in table D1-2 in the ADIv5.2 spec.
Variants
Implementations
impl Component[src]
pub fn try_parse<'probe: 'memory, 'memory>(
memory: &'memory mut Memory<'probe>,
baseaddr: u64
) -> Result<Component, RomTableError>[src]
memory: &'memory mut Memory<'probe>,
baseaddr: u64
) -> Result<Component, RomTableError>
Tries to parse a CoreSight component table.
pub fn id(&self) -> &ComponentId[src]
pub fn read_reg(&self, core: &mut Core<'_>, offset: u32) -> Result<u32, Error>[src]
Reads a register of the component pointed to by this romtable entry.
pub fn write_reg(
&self,
core: &mut Core<'_>,
offset: u32,
value: u32
) -> Result<(), Error>[src]
&self,
core: &mut Core<'_>,
offset: u32,
value: u32
) -> Result<(), Error>
Writes a register of the component pointed to by this romtable entry.
pub fn tpiu<'probe: 'core, 'core>(
&'core self,
core: &'core mut Core<'probe>
) -> Result<Tpiu<'probe, 'core>, RomTableError>[src]
&'core self,
core: &'core mut Core<'probe>
) -> Result<Tpiu<'probe, 'core>, RomTableError>
Returns the TPIU component if there is any.
pub fn dwt<'probe: 'core, 'core>(
&'core self,
core: &'core mut Core<'probe>
) -> Result<Dwt<'probe, 'core>, RomTableError>[src]
&'core self,
core: &'core mut Core<'probe>
) -> Result<Dwt<'probe, 'core>, RomTableError>
Returns the DWT component if there is any.
pub fn itm<'probe: 'core, 'core>(
&'core self,
core: &'core mut Core<'probe>
) -> Result<Itm<'probe, 'core>, RomTableError>[src]
&'core self,
core: &'core mut Core<'probe>
) -> Result<Itm<'probe, 'core>, RomTableError>
Returns the ITM component if there is any.
pub fn iter(&self) -> ComponentIter<'_>[src]
Trait Implementations
impl Debug for Component[src]
impl PartialEq<Component> for Component[src]
impl StructuralPartialEq for Component[src]
Auto Trait Implementations
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnwindSafe for Component
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>,