Struct stm32_hal2::pac::fmc::sdbank::sdcr::R

source ·
pub struct R(/* private fields */);
Expand description

Register SDCR reader

Implementations§

source§

impl R

source

pub fn nc(&self) -> FieldReaderRaw<u8, u8>

Bits 0:1 - Number of column address bits These bits define the number of bits of a column address.

source

pub fn nr(&self) -> FieldReaderRaw<u8, u8>

Bits 2:3 - Number of row address bits These bits define the number of bits of a row address.

source

pub fn mwid(&self) -> FieldReaderRaw<u8, u8>

Bits 4:5 - Memory data bus width. These bits define the memory device width.

source

pub fn nb(&self) -> BitReaderRaw<bool>

Bit 6 - Number of internal banks This bit sets the number of internal banks.

source

pub fn cas(&self) -> FieldReaderRaw<u8, u8>

Bits 7:8 - CAS Latency This bits sets the SDRAM CAS latency in number of memory clock cycles

source

pub fn wp(&self) -> BitReaderRaw<bool>

Bit 9 - Write protection This bit enables write mode access to the SDRAM bank.

source

pub fn sdclk(&self) -> FieldReaderRaw<u8, u8>

Bits 10:11 - SDRAM clock configuration These bits define the SDRAM clock period for both SDRAM banks and allow disabling the clock before changing the frequency. In this case the SDRAM must be re-initialized. Note: The corresponding bits in the FMC_SDCR2 register is read only.

source

pub fn rburst(&self) -> BitReaderRaw<bool>

Bit 12 - Burst read This bit enables burst read mode. The SDRAM controller anticipates the next read commands during the CAS latency and stores data in the Read FIFO. Note: The corresponding bit in the FMC_SDCR2 register is read only.

source

pub fn rpipe(&self) -> FieldReaderRaw<u8, u8>

Bits 13:14 - Read pipe These bits define the delay, in KCK_FMC clock cycles, for reading data after CAS latency. Note: The corresponding bits in the FMC_SDCR2 register is read only.

Methods from Deref<Target = R<SDCR_SPEC>>§

source

pub fn bits(&self) -> <REG as RegisterSpec>::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<SDCR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &<R as Deref>::Target

Dereferences the value.
source§

impl From<R<SDCR_SPEC>> for R

source§

fn from(reader: R<SDCR_SPEC>) -> R

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.