Struct swm341_pac::sys::prstr0::W

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

Register PRSTR0 writer

Implementations§

source§

impl W

source

pub fn gpioa(&mut self) -> GPIOA_W<'_, 0>

Bit 0 - GPIOA field

source

pub fn gpiob(&mut self) -> GPIOB_W<'_, 1>

Bit 1 - GPIOB field

source

pub fn gpioc(&mut self) -> GPIOC_W<'_, 2>

Bit 2 - GPIOC field

source

pub fn gpiod(&mut self) -> GPIOD_W<'_, 3>

Bit 3 - GPIOD field

source

pub fn gpiom(&mut self) -> GPIOM_W<'_, 4>

Bit 4 - GPIOM field

source

pub fn gpion(&mut self) -> GPION_W<'_, 5>

Bit 5 - GPION field

source

pub fn uart0(&mut self) -> UART0_W<'_, 6>

Bit 6 - UART0 field

source

pub fn uart1(&mut self) -> UART1_W<'_, 7>

Bit 7 - UART1 field

source

pub fn uart2(&mut self) -> UART2_W<'_, 8>

Bit 8 - UART2 field

source

pub fn uart3(&mut self) -> UART3_W<'_, 9>

Bit 9 - UART3 field

source

pub fn wdt(&mut self) -> WDT_W<'_, 10>

Bit 10 - WDT field

source

pub fn timr(&mut self) -> TIMR_W<'_, 11>

Bit 11 - TIMR field

source

pub fn pwm(&mut self) -> PWM_W<'_, 12>

Bit 12 - PWM field

source

pub fn spi0(&mut self) -> SPI0_W<'_, 13>

Bit 13 - SPI0 field

source

pub fn spi1(&mut self) -> SPI1_W<'_, 14>

Bit 14 - SPI1 field

source

pub fn i2c0(&mut self) -> I2C0_W<'_, 15>

Bit 15 - I2C0 field

source

pub fn i2c1(&mut self) -> I2C1_W<'_, 16>

Bit 16 - I2C1 field

source

pub fn crc(&mut self) -> CRC_W<'_, 19>

Bit 19 - CRC field

source

pub fn cordic(&mut self) -> CORDIC_W<'_, 20>

Bit 20 - CORDIC field

source

pub fn div(&mut self) -> DIV_W<'_, 21>

Bit 21 - DIV field

source

pub fn sdio(&mut self) -> SDIO_W<'_, 22>

Bit 22 - SDIO field

source

pub fn usb(&mut self) -> USB_W<'_, 24>

Bit 24 - USB field

source

pub fn anac(&mut self) -> ANAC_W<'_, 25>

Bit 25 - ANAC field

source

pub fn adc0(&mut self) -> ADC0_W<'_, 26>

Bit 26 - ADC0 field

source

pub fn can0(&mut self) -> CAN0_W<'_, 28>

Bit 28 - CAN0 field

source

pub fn dma2d(&mut self) -> DMA2D_W<'_, 29>

Bit 29 - DMA2D field

source

pub fn lcd(&mut self) -> LCD_W<'_, 30>

Bit 30 - LCD field

source

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

Writes raw bits to the register.

Methods from Deref<Target = W<PRSTR0_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

§

type Target = W<PRSTR0_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<PRSTR0_SPEC>> for W

source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

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