Struct stm32_metapac::fmc::regs::Pcscntr
#[repr(transparent)]pub struct Pcscntr(pub u32);
Expand description
PSRAM chip select counter register.
Tuple Fields§
§0: u32
Implementations§
§impl Pcscntr
impl Pcscntr
pub const fn cscount(&self) -> u16
pub const fn cscount(&self) -> u16
Chip select counter. These bits are written by software to define the maximum chip select low pulse duration. It is expressed in FMC_CLK cycles for synchronous accesses and in HCLK cycles for asynchronous accesses. The counter is disabled if the programmed value is 0.
pub fn set_cscount(&mut self, val: u16)
pub fn set_cscount(&mut self, val: u16)
Chip select counter. These bits are written by software to define the maximum chip select low pulse duration. It is expressed in FMC_CLK cycles for synchronous accesses and in HCLK cycles for asynchronous accesses. The counter is disabled if the programmed value is 0.
pub const fn cntben(&self, n: usize) -> bool
pub const fn cntben(&self, n: usize) -> bool
Counter Bank 1 enable This bit enables the chip select counter for PSRAM/NOR Bank 1.
pub fn set_cntben(&mut self, n: usize, val: bool)
pub fn set_cntben(&mut self, n: usize, val: bool)
Counter Bank 1 enable This bit enables the chip select counter for PSRAM/NOR Bank 1.
Trait Implementations§
impl Copy for Pcscntr
impl Eq for Pcscntr
impl StructuralPartialEq for Pcscntr
Auto Trait Implementations§
impl Freeze for Pcscntr
impl RefUnwindSafe for Pcscntr
impl Send for Pcscntr
impl Sync for Pcscntr
impl Unpin for Pcscntr
impl UnwindSafe for Pcscntr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)