R

Struct R 

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

Register CR2 reader

Implementations§

Source§

impl R

Source

pub fn add4_7(&self) -> ADD4_7_R

Bits 28:31 - Address of the USART node

Source

pub fn add0_3(&self) -> ADD0_3_R

Bits 24:27 - Address of the USART node

Source

pub fn rtoen(&self) -> RTOEN_R

Bit 23 - Receiver timeout enable

Source

pub fn abrmod(&self) -> ABRMOD_R

Bits 21:22 - Auto baud rate mode

Source

pub fn abren(&self) -> ABREN_R

Bit 20 - Auto baud rate enable

Source

pub fn msbfirst(&self) -> MSBFIRST_R

Bit 19 - Most significant bit first

Source

pub fn tainv(&self) -> TAINV_R

Bit 18 - Binary data inversion

Source

pub fn txinv(&self) -> TXINV_R

Bit 17 - TX pin active level inversion

Source

pub fn rxinv(&self) -> RXINV_R

Bit 16 - RX pin active level inversion

Source

pub fn swap(&self) -> SWAP_R

Bit 15 - Swap TX/RX pins

Source

pub fn linen(&self) -> LINEN_R

Bit 14 - LIN mode enable

Source

pub fn stop(&self) -> STOP_R

Bits 12:13 - STOP bits

Source

pub fn clken(&self) -> CLKEN_R

Bit 11 - Clock enable

Source

pub fn cpol(&self) -> CPOL_R

Bit 10 - Clock polarity

Source

pub fn cpha(&self) -> CPHA_R

Bit 9 - Clock phase

Source

pub fn lbcl(&self) -> LBCL_R

Bit 8 - Last bit clock pulse

Source

pub fn lbdie(&self) -> LBDIE_R

Bit 6 - LIN break detection interrupt enable

Source

pub fn lbdl(&self) -> LBDL_R

Bit 5 - LIN break detection length

Source

pub fn addm7(&self) -> ADDM7_R

Bit 4 - 7-bit Address Detection/4-bit Address Detection

Source

pub fn dis_nss(&self) -> DIS_NSS_R

Bit 3 - When the DSI_NSS bit is set, the NSS pin input will be ignored

Source

pub fn slven(&self) -> SLVEN_R

Bit 0 - Synchronous Slave mode enable

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

Source

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

Reads raw bits from register.

Trait Implementations§

Source§

impl Deref for R

Source§

type Target = R<CR2_SPEC>

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl From<R<CR2_SPEC>> for R

Source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for R

§

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

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

Source§

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>,

Source§

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.