#[repr(transparent)]pub struct Pirulestat(pub u32);Expand description
Set Interrupt Rules and User Status. Contains interrupt masks, user status, status commands and completion tags. SRST and SSTCL must not be written together; SRST takes precedence. SSTCL is mode-dependent command bits, not a global enable enum. Program CPU_TAG before completion commands.
Tuple Fields§
§0: u32Implementations§
Source§impl Pirulestat
impl Pirulestat
Sourcepub const fn set_interr(&mut self, val: bool)
pub const fn set_interr(&mut self, val: bool)
Interrupt If Error Detected
Sourcepub const fn set_intrd(&mut self, val: bool)
pub const fn set_intrd(&mut self, val: bool)
Interrupt If Read or First Read or Bus Master Started
Sourcepub const fn set_intwr(&mut self, val: bool)
pub const fn set_intwr(&mut self, val: bool)
Interrupt If Write or First Write or Bus Master Finished
Sourcepub const fn intspc(&self) -> u8
pub const fn intspc(&self) -> u8
Select Interrupts for PnSTAT[INTSPC0] through PnSTAT[INSTSPC3]
Sourcepub const fn set_intspc(&mut self, val: u8)
pub const fn set_intspc(&mut self, val: u8)
Select Interrupts for PnSTAT[INTSPC0] through PnSTAT[INSTSPC3]
Sourcepub const fn flash_completion_type(&self) -> PirulestatFlashCompletionType
pub const fn flash_completion_type(&self) -> PirulestatFlashCompletionType
Flash Completion Type. Encodings: 0: Indicates the middle completion of a split completion sequence; 1: Indicates the first completion of a split completion sequence; 2: Indicates the last completion of a split completion sequence; 3: Indicates the only completion for a split transaction.
Sourcepub const fn set_flash_completion_type(
&mut self,
val: PirulestatFlashCompletionType,
)
pub const fn set_flash_completion_type( &mut self, val: PirulestatFlashCompletionType, )
Flash Completion Type. Encodings: 0: Indicates the middle completion of a split completion sequence; 1: Indicates the first completion of a split completion sequence; 2: Indicates the last completion of a split completion sequence; 3: Indicates the only completion for a split transaction.
Sourcepub const fn set_cpu_tag(&mut self, val: u8)
pub const fn set_cpu_tag(&mut self, val: u8)
CPU Tag
Trait Implementations§
Source§impl Clone for Pirulestat
impl Clone for Pirulestat
Source§fn clone(&self) -> Pirulestat
fn clone(&self) -> Pirulestat
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more