stm32-metapac

Crates

git

Versions

stm32f101rf

Flavors

Struct stm32_metapac::afio::regs::Mapr

#[repr(transparent)]
pub struct Mapr(pub u32);
Expand description

AF remap and debug I/O configuration register (AFIO_MAPR)

Tuple Fields§

§0: u32

Implementations§

§

impl Mapr

pub const fn spi1_remap(&self) -> bool

SPI1 remapping

pub fn set_spi1_remap(&mut self, val: bool)

SPI1 remapping

pub const fn i2c1_remap(&self) -> bool

I2C1 remapping

pub fn set_i2c1_remap(&mut self, val: bool)

I2C1 remapping

pub const fn usart1_remap(&self) -> bool

USART1 remapping

pub fn set_usart1_remap(&mut self, val: bool)

USART1 remapping

pub const fn usart2_remap(&self) -> bool

USART2 remapping

pub fn set_usart2_remap(&mut self, val: bool)

USART2 remapping

pub const fn usart3_remap(&self) -> u8

USART3 remapping

pub fn set_usart3_remap(&mut self, val: u8)

USART3 remapping

pub const fn tim1_remap(&self) -> u8

TIM1 remapping

pub fn set_tim1_remap(&mut self, val: u8)

TIM1 remapping

pub const fn tim2_remap(&self) -> u8

TIM2 remapping

pub fn set_tim2_remap(&mut self, val: u8)

TIM2 remapping

pub const fn tim3_remap(&self) -> u8

TIM3 remapping

pub fn set_tim3_remap(&mut self, val: u8)

TIM3 remapping

pub const fn tim4_remap(&self) -> bool

TIM4 remapping

pub fn set_tim4_remap(&mut self, val: bool)

TIM4 remapping

pub const fn can1_remap(&self) -> u8

CAN1 remapping

pub fn set_can1_remap(&mut self, val: u8)

CAN1 remapping

pub const fn pd01_remap(&self) -> bool

Port D0/Port D1 mapping on OSCIN/OSCOUT

pub fn set_pd01_remap(&mut self, val: bool)

Port D0/Port D1 mapping on OSCIN/OSCOUT

pub const fn tim5ch4_iremap(&self) -> bool

Set and cleared by software

pub fn set_tim5ch4_iremap(&mut self, val: bool)

Set and cleared by software

pub const fn adc1_etrginj_remap(&self) -> bool

ADC 1 External trigger injected conversion remapping

pub fn set_adc1_etrginj_remap(&mut self, val: bool)

ADC 1 External trigger injected conversion remapping

pub const fn adc1_etrgreg_remap(&self) -> bool

ADC 1 external trigger regular conversion remapping

pub fn set_adc1_etrgreg_remap(&mut self, val: bool)

ADC 1 external trigger regular conversion remapping

pub const fn adc2_etrginj_remap(&self) -> bool

ADC 2 external trigger injected conversion remapping

pub fn set_adc2_etrginj_remap(&mut self, val: bool)

ADC 2 external trigger injected conversion remapping

pub const fn adc2_etrgreg_remap(&self) -> bool

ADC 2 external trigger regular conversion remapping

pub fn set_adc2_etrgreg_remap(&mut self, val: bool)

ADC 2 external trigger regular conversion remapping

pub const fn eth_remap(&self) -> bool

Ethernet MAC I/O remapping

pub fn set_eth_remap(&mut self, val: bool)

Ethernet MAC I/O remapping

pub const fn can2_remap(&self) -> bool

CAN2 I/O remapping

pub fn set_can2_remap(&mut self, val: bool)

CAN2 I/O remapping

pub const fn mii_rmii_sel(&self) -> bool

MII or RMII selection

pub fn set_mii_rmii_sel(&mut self, val: bool)

MII or RMII selection

pub const fn swj_cfg(&self) -> u8

Serial wire JTAG configuration

pub fn set_swj_cfg(&mut self, val: u8)

Serial wire JTAG configuration

pub const fn spi3_remap(&self) -> bool

SPI3/I2S3 remapping

pub fn set_spi3_remap(&mut self, val: bool)

SPI3/I2S3 remapping

pub const fn tim2itr1_iremap(&self) -> bool

TIM2 internal trigger 1 remapping

pub fn set_tim2itr1_iremap(&mut self, val: bool)

TIM2 internal trigger 1 remapping

pub const fn ptp_pps_remap(&self) -> bool

Ethernet PTP PPS remapping

pub fn set_ptp_pps_remap(&mut self, val: bool)

Ethernet PTP PPS remapping

Trait Implementations§

§

impl Clone for Mapr

§

fn clone(&self) -> Mapr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Default for Mapr

§

fn default() -> Mapr

Returns the “default value” for a type. Read more
§

impl PartialEq for Mapr

§

fn eq(&self, other: &Mapr) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Mapr

§

impl Eq for Mapr

§

impl StructuralPartialEq for Mapr

Auto Trait Implementations§

§

impl Freeze for Mapr

§

impl RefUnwindSafe for Mapr

§

impl Send for Mapr

§

impl Sync for Mapr

§

impl Unpin for Mapr

§

impl UnwindSafe for Mapr

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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>,

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.