Struct Ccr
#[repr(transparent)]pub struct Ccr(pub u32);
Expand description
XSPI communication configuration register
Tuple Fields§
§0: u32
Implementations§
§impl Ccr
impl Ccr
pub const fn imode(&self) -> CcrImode
pub const fn imode(&self) -> CcrImode
Instruction mode This field defines the instruction phase mode of operation. Others: reserved
pub fn set_imode(&mut self, val: CcrImode)
pub fn set_imode(&mut self, val: CcrImode)
Instruction mode This field defines the instruction phase mode of operation. Others: reserved
pub const fn idtr(&self) -> bool
pub const fn idtr(&self) -> bool
Instruction double transfer rate This bit sets the DTR mode for the instruction phase.
pub fn set_idtr(&mut self, val: bool)
pub fn set_idtr(&mut self, val: bool)
Instruction double transfer rate This bit sets the DTR mode for the instruction phase.
pub const fn admode(&self) -> CcrAdmode
pub const fn admode(&self) -> CcrAdmode
Address mode This field defines the address phase mode of operation. Others: reserved
pub fn set_admode(&mut self, val: CcrAdmode)
pub fn set_admode(&mut self, val: CcrAdmode)
Address mode This field defines the address phase mode of operation. Others: reserved
pub const fn addtr(&self) -> bool
pub const fn addtr(&self) -> bool
Address double transfer rate This bit sets the DTR mode for the address phase.
pub fn set_addtr(&mut self, val: bool)
pub fn set_addtr(&mut self, val: bool)
Address double transfer rate This bit sets the DTR mode for the address phase.
pub fn set_adsize(&mut self, val: CcrAdsize)
pub fn set_adsize(&mut self, val: CcrAdsize)
Address size This field defines address size.
pub const fn abmode(&self) -> CcrAbmode
pub const fn abmode(&self) -> CcrAbmode
Alternate-byte mode This field defines the alternate byte phase mode of operation. Others: reserved
pub fn set_abmode(&mut self, val: CcrAbmode)
pub fn set_abmode(&mut self, val: CcrAbmode)
Alternate-byte mode This field defines the alternate byte phase mode of operation. Others: reserved
pub const fn abdtr(&self) -> bool
pub const fn abdtr(&self) -> bool
Alternate bytes double transfer rate This bit sets the DTR mode for the alternate bytes phase. Note: This field can be written only when BUSY = 0.
pub fn set_abdtr(&mut self, val: bool)
pub fn set_abdtr(&mut self, val: bool)
Alternate bytes double transfer rate This bit sets the DTR mode for the alternate bytes phase. Note: This field can be written only when BUSY = 0.
pub fn set_absize(&mut self, val: CcrAbsize)
pub fn set_absize(&mut self, val: CcrAbsize)
Alternate bytes size This bit defines alternate bytes size.
pub const fn dmode(&self) -> CcrDmode
pub const fn dmode(&self) -> CcrDmode
Data mode This field defines the data phase mode of operation. Others: reserved
pub fn set_dmode(&mut self, val: CcrDmode)
pub fn set_dmode(&mut self, val: CcrDmode)
Data mode This field defines the data phase mode of operation. Others: reserved
pub const fn ddtr(&self) -> bool
pub const fn ddtr(&self) -> bool
Data double transfer rate This bit sets the DTR mode for the data phase.