Struct stm32wlxx_hal::pac::usart1::cr2::R

pub struct R(/* private fields */);
Available on crate feature stm32wl5x_cm4 only.
Expand description

Register CR2 reader

Implementations§

§

impl R

pub fn rtoen(&self) -> BitReaderRaw<RTOEN_A>

Bit 23 - Receiver timeout enable

pub fn abren(&self) -> BitReaderRaw<ABREN_A>

Bit 20 - Auto baud rate enable

pub fn msbfirst(&self) -> BitReaderRaw<MSBFIRST_A>

Bit 19 - Most significant bit first

pub fn datainv(&self) -> BitReaderRaw<DATAINV_A>

Bit 18 - Binary data inversion

pub fn txinv(&self) -> BitReaderRaw<TXINV_A>

Bit 17 - TX pin active level inversion

pub fn rxinv(&self) -> BitReaderRaw<RXINV_A>

Bit 16 - RX pin active level inversion

pub fn swap(&self) -> BitReaderRaw<SWAP_A>

Bit 15 - Swap TX/RX pins

pub fn linen(&self) -> BitReaderRaw<LINEN_A>

Bit 14 - LIN mode enable

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

Bits 12:13 - stop bits

pub fn clken(&self) -> BitReaderRaw<CLKEN_A>

Bit 11 - Clock enable

pub fn cpol(&self) -> BitReaderRaw<CPOL_A>

Bit 10 - Clock polarity

pub fn cpha(&self) -> BitReaderRaw<CPHA_A>

Bit 9 - Clock phase

pub fn lbcl(&self) -> BitReaderRaw<LBCL_A>

Bit 8 - Last bit clock pulse

pub fn lbdie(&self) -> BitReaderRaw<LBDIE_A>

Bit 6 - LIN break detection interrupt enable

pub fn lbdl(&self) -> BitReaderRaw<LBDL_A>

Bit 5 - LIN break detection length

pub fn addm7(&self) -> BitReaderRaw<ADDM7_A>

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

pub fn dis_nss(&self) -> BitReaderRaw<DIS_NSS_A>

Bit 3 - DIS_NSS

pub fn slven(&self) -> BitReaderRaw<SLVEN_A>

Bit 0 - Synchronous Slave mode enable

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

Bits 24:31 - Address of the USART node

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

Bits 21:22 - Auto baud rate mode

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

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

Reads raw bits from register.

Trait Implementations§

§

impl Deref for R

§

type Target = R<CR2_SPEC>

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl From<R<CR2_SPEC>> for R

§

fn from(reader: R<CR2_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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.