pub struct Csw(/* private fields */);Expand description
Control/Status Word register data
Implementations§
Source§impl Csw
impl Csw
pub const SIZE_8BIT: u32 = 0b000
pub const SIZE_16BIT: u32 = 0b001
pub const SIZE_32BIT: u32 = 0b010
pub const SIZE_64BIT: u32 = 0b011
pub const SIZE_128BIT: u32 = 0b100
pub const SIZE_256BIT: u32 = 0b101
pub const ADDRINC_OFF: u32 = 0b00
pub const ADDRINC_SINGLE: u32 = 0b01
pub const ADDRINC_PACKED: u32 = 0b10
pub const PROT_MASTER_DEBUG: u32
pub const PROT_BIT_1: u32
Sourcepub fn tr_in_prog(&self) -> bool
pub fn tr_in_prog(&self) -> bool
Get transfer in progress flag
Sourcepub fn dbg_sw_enable(&self) -> bool
pub fn dbg_sw_enable(&self) -> bool
Get debug software enable flag
pub fn set_reserved_high(&mut self)
Sourcepub fn set_addrinc(&mut self, addrinc: u32)
pub fn set_addrinc(&mut self, addrinc: u32)
Set address increment field
Sourcepub fn set_device_en(&mut self, enable: bool)
pub fn set_device_en(&mut self, enable: bool)
Set device enable flag
Sourcepub fn set_spiden(&mut self, enable: bool)
pub fn set_spiden(&mut self, enable: bool)
Set SPIDEN flag
Sourcepub fn set_dbg_sw_enable(&mut self, enable: bool)
pub fn set_dbg_sw_enable(&mut self, enable: bool)
Set debug software enable flag
Sourcepub fn transfer_config(&self) -> String
pub fn transfer_config(&self) -> String
Get transfer configuration description
Sourcepub fn status_flags(&self) -> String
pub fn status_flags(&self) -> String
Get status flags description
Sourcepub fn security_state(&self) -> String
pub fn security_state(&self) -> String
Get security state description
Trait Implementations§
impl Copy for Csw
impl Eq for Csw
impl StructuralPartialEq for Csw
Auto Trait Implementations§
impl Freeze for Csw
impl RefUnwindSafe for Csw
impl Send for Csw
impl Sync for Csw
impl Unpin for Csw
impl UnsafeUnpin for Csw
impl UnwindSafe for Csw
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