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
impl Mapr
pub const fn spi1_remap(&self) -> bool
pub const fn spi1_remap(&self) -> bool
SPI1 remapping
pub fn set_spi1_remap(&mut self, val: bool)
pub fn set_spi1_remap(&mut self, val: bool)
SPI1 remapping
pub const fn i2c1_remap(&self) -> bool
pub const fn i2c1_remap(&self) -> bool
I2C1 remapping
pub fn set_i2c1_remap(&mut self, val: bool)
pub fn set_i2c1_remap(&mut self, val: bool)
I2C1 remapping
pub const fn usart1_remap(&self) -> bool
pub const fn usart1_remap(&self) -> bool
USART1 remapping
pub fn set_usart1_remap(&mut self, val: bool)
pub fn set_usart1_remap(&mut self, val: bool)
USART1 remapping
pub const fn usart2_remap(&self) -> bool
pub const fn usart2_remap(&self) -> bool
USART2 remapping
pub fn set_usart2_remap(&mut self, val: bool)
pub fn set_usart2_remap(&mut self, val: bool)
USART2 remapping
pub const fn usart3_remap(&self) -> u8
pub const fn usart3_remap(&self) -> u8
USART3 remapping
pub fn set_usart3_remap(&mut self, val: u8)
pub fn set_usart3_remap(&mut self, val: u8)
USART3 remapping
pub const fn tim1_remap(&self) -> u8
pub const fn tim1_remap(&self) -> u8
TIM1 remapping
pub fn set_tim1_remap(&mut self, val: u8)
pub fn set_tim1_remap(&mut self, val: u8)
TIM1 remapping
pub const fn tim2_remap(&self) -> u8
pub const fn tim2_remap(&self) -> u8
TIM2 remapping
pub fn set_tim2_remap(&mut self, val: u8)
pub fn set_tim2_remap(&mut self, val: u8)
TIM2 remapping
pub const fn tim3_remap(&self) -> u8
pub const fn tim3_remap(&self) -> u8
TIM3 remapping
pub fn set_tim3_remap(&mut self, val: u8)
pub fn set_tim3_remap(&mut self, val: u8)
TIM3 remapping
pub const fn tim4_remap(&self) -> bool
pub const fn tim4_remap(&self) -> bool
TIM4 remapping
pub fn set_tim4_remap(&mut self, val: bool)
pub fn set_tim4_remap(&mut self, val: bool)
TIM4 remapping
pub const fn can1_remap(&self) -> u8
pub const fn can1_remap(&self) -> u8
CAN1 remapping
pub fn set_can1_remap(&mut self, val: u8)
pub fn set_can1_remap(&mut self, val: u8)
CAN1 remapping
pub const fn pd01_remap(&self) -> bool
pub const fn pd01_remap(&self) -> bool
Port D0/Port D1 mapping on OSCIN/OSCOUT
pub fn set_pd01_remap(&mut self, val: bool)
pub fn set_pd01_remap(&mut self, val: bool)
Port D0/Port D1 mapping on OSCIN/OSCOUT
pub const fn tim5ch4_iremap(&self) -> bool
pub const fn tim5ch4_iremap(&self) -> bool
Set and cleared by software
pub fn set_tim5ch4_iremap(&mut self, val: bool)
pub fn set_tim5ch4_iremap(&mut self, val: bool)
Set and cleared by software
pub const fn adc1_etrginj_remap(&self) -> bool
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)
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
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)
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
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)
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
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)
pub fn set_adc2_etrgreg_remap(&mut self, val: bool)
ADC 2 external trigger regular conversion remapping
pub fn set_eth_remap(&mut self, val: bool)
pub fn set_eth_remap(&mut self, val: bool)
Ethernet MAC I/O remapping
pub const fn can2_remap(&self) -> bool
pub const fn can2_remap(&self) -> bool
CAN2 I/O remapping
pub fn set_can2_remap(&mut self, val: bool)
pub fn set_can2_remap(&mut self, val: bool)
CAN2 I/O remapping
pub const fn mii_rmii_sel(&self) -> bool
pub const fn mii_rmii_sel(&self) -> bool
MII or RMII selection
pub fn set_mii_rmii_sel(&mut self, val: bool)
pub fn set_mii_rmii_sel(&mut self, val: bool)
MII or RMII selection
pub fn set_swj_cfg(&mut self, val: u8)
pub fn set_swj_cfg(&mut self, val: u8)
Serial wire JTAG configuration
pub const fn spi3_remap(&self) -> bool
pub const fn spi3_remap(&self) -> bool
SPI3/I2S3 remapping
pub fn set_spi3_remap(&mut self, val: bool)
pub fn set_spi3_remap(&mut self, val: bool)
SPI3/I2S3 remapping
pub const fn tim2itr1_iremap(&self) -> bool
pub const fn tim2itr1_iremap(&self) -> bool
TIM2 internal trigger 1 remapping
pub fn set_tim2itr1_iremap(&mut self, val: bool)
pub fn set_tim2itr1_iremap(&mut self, val: bool)
TIM2 internal trigger 1 remapping
pub const fn ptp_pps_remap(&self) -> bool
pub const fn ptp_pps_remap(&self) -> bool
Ethernet PTP PPS remapping
pub fn set_ptp_pps_remap(&mut self, val: bool)
pub fn set_ptp_pps_remap(&mut self, val: bool)
Ethernet PTP PPS remapping