pub struct W(/* private fields */);
Expand description
Register SDCR%s
writer
Implementations§
source§impl W
impl W
sourcepub fn nc(&mut self) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, NC_A, Safe, 2, 0>
pub fn nc(&mut self) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, NC_A, Safe, 2, 0>
Bits 0:1 - Number of column address bits
sourcepub fn nr(
&mut self
) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, NR_A, Unsafe, 2, 2>
pub fn nr( &mut self ) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, NR_A, Unsafe, 2, 2>
Bits 2:3 - Number of row address bits
sourcepub fn mwid(
&mut self
) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, MWID_A, Unsafe, 2, 4>
pub fn mwid( &mut self ) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, MWID_A, Unsafe, 2, 4>
Bits 4:5 - Memory data bus width
sourcepub fn nb(&mut self) -> BitWriterRaw<'_, u32, SDCR_SPEC, NB_A, BitM, 6>
pub fn nb(&mut self) -> BitWriterRaw<'_, u32, SDCR_SPEC, NB_A, BitM, 6>
Bit 6 - Number of internal banks
sourcepub fn cas(
&mut self
) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, CAS_A, Unsafe, 2, 7>
pub fn cas( &mut self ) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, CAS_A, Unsafe, 2, 7>
Bits 7:8 - CAS latency
sourcepub fn wp(&mut self) -> BitWriterRaw<'_, u32, SDCR_SPEC, WP_A, BitM, 9>
pub fn wp(&mut self) -> BitWriterRaw<'_, u32, SDCR_SPEC, WP_A, BitM, 9>
Bit 9 - Write protection
sourcepub fn sdclk(
&mut self
) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, SDCLK_A, Unsafe, 2, 10>
pub fn sdclk( &mut self ) -> FieldWriterRaw<'_, u32, SDCR_SPEC, u8, SDCLK_A, Unsafe, 2, 10>
Bits 10:11 - SDRAM clock configuration
sourcepub fn rburst(&mut self) -> BitWriterRaw<'_, u32, SDCR_SPEC, RBURST_A, BitM, 12>
pub fn rburst(&mut self) -> BitWriterRaw<'_, u32, SDCR_SPEC, RBURST_A, BitM, 12>
Bit 12 - Burst read
Methods from Deref<Target = W<SDCR_SPEC>>§
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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