pub struct CtrlStat(/* private fields */);Expand description
ARM Debug Port CTRL/STAT register data
Implementations§
Source§impl CtrlStat
impl CtrlStat
pub const TRNMODE_NORMAL: u32 = 0b00
pub const TRNMODE_VERIFY: u32 = 0b01
pub const TRNMODE_COMPARE: u32 = 0b10
Sourcepub fn orundetect(&self) -> bool
pub fn orundetect(&self) -> bool
Get overrun detection enable
Sourcepub fn stickyorun(&self) -> bool
pub fn stickyorun(&self) -> bool
Get sticky overrun flag
Sourcepub fn cdbgrstreq(&self) -> bool
pub fn cdbgrstreq(&self) -> bool
Get debug reset request
Sourcepub fn cdbgrstack(&self) -> bool
pub fn cdbgrstack(&self) -> bool
Get debug reset acknowledge
Sourcepub fn cdbgpwrupreq(&self) -> bool
pub fn cdbgpwrupreq(&self) -> bool
Get debug power-up request
Sourcepub fn cdbgpwrupack(&self) -> bool
pub fn cdbgpwrupack(&self) -> bool
Get debug power-up acknowledge
Sourcepub fn csyspwrupreq(&self) -> bool
pub fn csyspwrupreq(&self) -> bool
Get system power-up request
Sourcepub fn csyspwrupack(&self) -> bool
pub fn csyspwrupack(&self) -> bool
Get system power-up acknowledge
pub fn has_errors(&self) -> bool
Sourcepub fn set_orundetect(&mut self, enable: bool)
pub fn set_orundetect(&mut self, enable: bool)
Set overrun detection enable
Sourcepub fn set_stickyorun(&mut self, enable: bool)
pub fn set_stickyorun(&mut self, enable: bool)
Set sticky overrun flag
Sourcepub fn set_trnmode(&mut self, mode: u32)
pub fn set_trnmode(&mut self, mode: u32)
Set transaction mode
Sourcepub fn set_stickycmp(&mut self, enable: bool)
pub fn set_stickycmp(&mut self, enable: bool)
Set sticky compare flag
Sourcepub fn set_stickyerr(&mut self, enable: bool)
pub fn set_stickyerr(&mut self, enable: bool)
Set sticky error flag
Sourcepub fn set_masklane(&mut self, mask: u32)
pub fn set_masklane(&mut self, mask: u32)
Set mask lane value
Sourcepub fn set_trncnt(&mut self, count: u32)
pub fn set_trncnt(&mut self, count: u32)
Set transaction count
Sourcepub fn set_cdbgrstreq(&mut self, enable: bool)
pub fn set_cdbgrstreq(&mut self, enable: bool)
Set debug reset request
Sourcepub fn set_cdbgpwrupreq(&mut self, enable: bool)
pub fn set_cdbgpwrupreq(&mut self, enable: bool)
Set debug power-up request
Sourcepub fn set_csyspwrupreq(&mut self, enable: bool)
pub fn set_csyspwrupreq(&mut self, enable: bool)
Set system power-up request
Sourcepub fn error_states(&self) -> String
pub fn error_states(&self) -> String
Get error state description
Sourcepub fn power_states(&self) -> String
pub fn power_states(&self) -> String
Get power state description
Sourcepub fn transaction_state(&self) -> String
pub fn transaction_state(&self) -> String
Get transaction state description
Trait Implementations§
impl Copy for CtrlStat
impl Eq for CtrlStat
impl StructuralPartialEq for CtrlStat
Auto Trait Implementations§
impl Freeze for CtrlStat
impl RefUnwindSafe for CtrlStat
impl Send for CtrlStat
impl Sync for CtrlStat
impl Unpin for CtrlStat
impl UnsafeUnpin for CtrlStat
impl UnwindSafe for CtrlStat
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