Struct ch32v3::ch32v30x::afio::pcfr::W

source ·
pub struct W(_);
Expand description

Register PCFR writer

Implementations§

source§

impl W

source

pub fn spi1rm(&mut self) -> SPI1RM_W<'_, 0>

Bit 0 - SPI1 remapping

source

pub fn i2c1rm(&mut self) -> I2C1RM_W<'_, 1>

Bit 1 - I2C1 remapping

source

pub fn usart1rm(&mut self) -> USART1RM_W<'_, 2>

Bit 2 - USART1 remapping

source

pub fn usart2rm(&mut self) -> USART2RM_W<'_, 3>

Bit 3 - USART2 remapping

source

pub fn usart3rm(&mut self) -> USART3RM_W<'_, 4>

Bits 4:5 - USART3 remapping

source

pub fn tim1rm(&mut self) -> TIM1RM_W<'_, 6>

Bits 6:7 - TIM1 remapping

source

pub fn tim2rm(&mut self) -> TIM2RM_W<'_, 8>

Bits 8:9 - TIM2 remapping

source

pub fn tim3rm(&mut self) -> TIM3RM_W<'_, 10>

Bits 10:11 - TIM3 remapping

source

pub fn tim4rm(&mut self) -> TIM4RM_W<'_, 12>

Bit 12 - TIM4 remapping

source

pub fn can1rm(&mut self) -> CAN1RM_W<'_, 13>

Bits 13:14 - CAN1 remapping

source

pub fn pd01rm(&mut self) -> PD01RM_W<'_, 15>

Bit 15 - Port D0/Port D1 mapping on OSCIN/OSCOUT

source

pub fn tim5ch4rm(&mut self) -> TIM5CH4RM_W<'_, 16>

Bit 16 - TIM5 channel4 internal remap

source

pub fn adc1_etrginj_rm(&mut self) -> ADC1_ETRGINJ_RM_W<'_, 17>

Bit 17 - ADC 1 External trigger injected conversion remapping

source

pub fn adc1_etrgreg_rm(&mut self) -> ADC1_ETRGREG_RM_W<'_, 18>

Bit 18 - ADC 1 external trigger regular conversion remapping

source

pub fn adc2_etrginj_rm(&mut self) -> ADC2_ETRGINJ_RM_W<'_, 19>

Bit 19 - ADC 2 External trigger injected conversion remapping

source

pub fn adc2_etrgreg_rm(&mut self) -> ADC2_ETRGREG_RM_W<'_, 20>

Bit 20 - ADC 2 external trigger regular conversion remapping

source

pub fn ethrm(&mut self) -> ETHRM_W<'_, 21>

Bit 21 - Ethernet remapping

source

pub fn can2rm(&mut self) -> CAN2RM_W<'_, 22>

Bit 22 - CAN2 remapping

source

pub fn mii_rmii_sel(&mut self) -> MII_RMII_SEL_W<'_, 23>

Bit 23 - MII_RMII_SEL

source

pub fn swcfg(&mut self) -> SWCFG_W<'_, 24>

Bits 24:26 - Serial wire JTAG configuration

source

pub fn spi3_rm(&mut self) -> SPI3_RM_W<'_, 28>

Bit 28 - SPI3 remapping

source

pub fn tim2itra_rm(&mut self) -> TIM2ITRA_RM_W<'_, 29>

Bit 29 - TIM2 internally triggers 1 remapping

source

pub fn ptp_ppsp_rm(&mut self) -> PTP_PPSP_RM_W<'_, 30>

Bit 30 - Ethernet PTP_PPS remapping

source

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

Writes raw bits to the register.

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

source

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

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<PCFR_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<PCFR_SPEC>> for W

source§

fn from(writer: W<PCFR_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 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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.
const: unstable · 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.
const: unstable · source§

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

Performs the conversion.