W

Struct W 

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

Register UART_CONF0 writer

Implementations§

Source§

impl W

Source

pub fn uart_dtr_inv(&mut self) -> UART_DTR_INV_W<'_>

Bit 24 - Set this bit to inverse uart dtr level

Source

pub fn uart_rts_inv(&mut self) -> UART_RTS_INV_W<'_>

Bit 23 - Set this bit to inverse uart rts level

Source

pub fn uart_txd_inv(&mut self) -> UART_TXD_INV_W<'_>

Bit 22 - Set this bit to inverse uart txd level

Source

pub fn uart_dsr_inv(&mut self) -> UART_DSR_INV_W<'_>

Bit 21 - Set this bit to inverse uart dsr level

Source

pub fn uart_cts_inv(&mut self) -> UART_CTS_INV_W<'_>

Bit 20 - Set this bit to inverse uart cts level

Source

pub fn uart_rxd_inv(&mut self) -> UART_RXD_INV_W<'_>

Bit 19 - Set this bit to inverse uart rxd level

Source

pub fn txfifo_rst(&mut self) -> TXFIFO_RST_W<'_>

Bit 18 - Set this bit to reset uart tx fifo

Source

pub fn rxfifo_rst(&mut self) -> RXFIFO_RST_W<'_>

Bit 17 - Set this bit to reset uart rx fifo

Source

pub fn tx_flow_en(&mut self) -> TX_FLOW_EN_W<'_>

Bit 15 - Set this bit to enable uart tx hardware flow control

Source

pub fn uart_loopback(&mut self) -> UART_LOOPBACK_W<'_>

Bit 14 - Set this bit to enable uart loopback test mode

Source

pub fn txd_brk(&mut self) -> TXD_BRK_W<'_>

Bit 8 - RESERVED, DO NOT CHANGE THIS BIT

Source

pub fn sw_dtr(&mut self) -> SW_DTR_W<'_>

Bit 7 - sw dtr

Source

pub fn sw_rts(&mut self) -> SW_RTS_W<'_>

Bit 6 - sw rts

Source

pub fn stop_bit_num(&mut self) -> STOP_BIT_NUM_W<'_>

Bits 4:5 - Set stop bit: 1:1bit 2:1.5bits 3:2bits

Source

pub fn bit_num(&mut self) -> BIT_NUM_W<'_>

Bits 2:3 - Set bit num: 0:5bits 1:6bits 2:7bits 3:8bits

Source

pub fn parity_en(&mut self) -> PARITY_EN_W<'_>

Bit 1 - Set this bit to enable uart parity check

Source

pub fn parity(&mut self) -> PARITY_W<'_>

Bit 0 - Set parity check: 0:even 1:odd, UART CONFIG1

Source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<UART_CONF0_SPEC>>§

Source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Trait Implementations§

Source§

impl Deref for W

Source§

type Target = W<UART_CONF0_SPEC>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for W

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl From<W<UART_CONF0_SPEC>> for W

Source§

fn from(writer: W<UART_CONF0_SPEC>) -> Self

Converts to this type from the input type.

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