Skip to main content

CtrlStat

Struct CtrlStat 

Source
pub struct CtrlStat(/* private fields */);
Expand description

ARM Debug Port CTRL/STAT register data

Implementations§

Source§

impl CtrlStat

Source

pub const TRNMODE_NORMAL: u32 = 0b00

Source

pub const TRNMODE_VERIFY: u32 = 0b01

Source

pub const TRNMODE_COMPARE: u32 = 0b10

Source

pub fn value(&self) -> u32

Get raw register value

Source

pub fn orundetect(&self) -> bool

Get overrun detection enable

Source

pub fn stickyorun(&self) -> bool

Get sticky overrun flag

Source

pub fn trnmode(&self) -> u32

Get transaction mode

Source

pub fn stickycmp(&self) -> bool

Get sticky compare flag

Source

pub fn stickyerr(&self) -> bool

Get sticky error flag

Source

pub fn readok(&self) -> bool

Get read OK flag

Source

pub fn wdataerr(&self) -> bool

Get write data error flag

Source

pub fn masklane(&self) -> u32

Get mask lane value

Source

pub fn trncnt(&self) -> u32

Get transaction count

Source

pub fn cdbgrstreq(&self) -> bool

Get debug reset request

Source

pub fn cdbgrstack(&self) -> bool

Get debug reset acknowledge

Source

pub fn cdbgpwrupreq(&self) -> bool

Get debug power-up request

Source

pub fn cdbgpwrupack(&self) -> bool

Get debug power-up acknowledge

Source

pub fn csyspwrupreq(&self) -> bool

Get system power-up request

Source

pub fn csyspwrupack(&self) -> bool

Get system power-up acknowledge

Source

pub fn has_errors(&self) -> bool

Source

pub fn set_orundetect(&mut self, enable: bool)

Set overrun detection enable

Source

pub fn set_stickyorun(&mut self, enable: bool)

Set sticky overrun flag

Source

pub fn set_trnmode(&mut self, mode: u32)

Set transaction mode

Source

pub fn set_stickycmp(&mut self, enable: bool)

Set sticky compare flag

Source

pub fn set_stickyerr(&mut self, enable: bool)

Set sticky error flag

Source

pub fn set_masklane(&mut self, mask: u32)

Set mask lane value

Source

pub fn set_trncnt(&mut self, count: u32)

Set transaction count

Source

pub fn set_cdbgrstreq(&mut self, enable: bool)

Set debug reset request

Source

pub fn set_cdbgpwrupreq(&mut self, enable: bool)

Set debug power-up request

Source

pub fn set_csyspwrupreq(&mut self, enable: bool)

Set system power-up request

Source

pub fn error_states(&self) -> String

Get error state description

Source

pub fn power_states(&self) -> String

Get power state description

Source

pub fn transaction_state(&self) -> String

Get transaction state description

Trait Implementations§

Source§

impl Clone for CtrlStat

Source§

fn clone(&self) -> CtrlStat

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for CtrlStat

Source§

impl Debug for CtrlStat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CtrlStat

Source§

fn default() -> CtrlStat

Returns the “default value” for a type. Read more
Source§

impl Display for CtrlStat

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for CtrlStat

Source§

impl From<CtrlStat> for u32

Source§

fn from(value: CtrlStat) -> u32

Converts to this type from the input type.
Source§

impl From<u32> for CtrlStat

Source§

fn from(value: u32) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for CtrlStat

Source§

fn eq(&self, other: &CtrlStat) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for CtrlStat

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.