pub struct Rmp<T, const R: u8>(/* private fields */);
Implementations§
Source§impl<USART: Instance, const R: u8> Rmp<USART, R>
impl<USART: Instance, const R: u8> Rmp<USART, R>
pub fn serial<Otype, PULL: UpMode>( self, pins: (impl RInto<USART::Tx<Otype>, R>, impl RInto<USART::Rx<PULL>, R>), config: impl Into<Config>, rcc: &mut Rcc, ) -> Serial<USART, Otype, PULL>
pub fn tx<Otype>( self, tx_pin: impl RInto<USART::Tx<Otype>, R>, config: impl Into<Config>, rcc: &mut Rcc, ) -> Tx<USART>
pub fn rx<PULL: UpMode>( self, rx_pin: impl RInto<USART::Rx<PULL>, R>, config: impl Into<Config>, rcc: &mut Rcc, ) -> Rx<USART>
Source§impl<SPI: Instance, const R: u8> Rmp<SPI, R>
impl<SPI: Instance, const R: u8> Rmp<SPI, R>
pub fn spi<PULL: UpMode>( self, pins: (Option<impl RInto<SPI::MSck, R>>, Option<impl RInto<SPI::Mi<PULL>, R>>, Option<impl RInto<SPI::Mo, R>>), mode: Mode, freq: Hertz, rcc: &mut Rcc, ) -> Spi<SPI, u8, PULL>
pub fn spi_u16<PULL: UpMode>( self, pins: (Option<impl RInto<SPI::MSck, R>>, Option<impl RInto<SPI::Mi<PULL>, R>>, Option<impl RInto<SPI::Mo, R>>), mode: Mode, freq: Hertz, rcc: &mut Rcc, ) -> Spi<SPI, u16, PULL>
pub fn spi_slave<Otype, PULL: UpMode>( self, pins: (Option<impl RInto<SPI::SSck, R>>, Option<impl RInto<SPI::So<Otype>, R>>, Option<impl RInto<SPI::Si<PULL>, R>>), mode: Mode, rcc: &mut RCC, ) -> SpiSlave<SPI, u8, Otype, PULL>
pub fn spi_slave_u16<Otype, PULL: UpMode>( self, pins: (Option<impl RInto<SPI::SSck, R>>, Option<impl RInto<SPI::So<Otype>, R>>, Option<impl RInto<SPI::Si<PULL>, R>>), mode: Mode, rcc: &mut RCC, ) -> SpiSlave<SPI, u16, Otype, PULL>
Source§impl<const R: u8> Rmp<TIM1, R>
impl<const R: u8> Rmp<TIM1, R>
pub fn pwm_input( self, pins: (impl RInto<<TIM1 as TimC<0>>::In, R>, impl RInto<<TIM1 as TimC<1>>::In, R>), dbg: &mut DBG, mode: Configuration, rcc: &mut Rcc, ) -> PwmInput<TIM1>
pub fn qei( self, pins: (impl RInto<<TIM1 as TimC<0>>::In, R>, impl RInto<<TIM1 as TimC<1>>::In, R>), options: QeiOptions, rcc: &mut Rcc, ) -> Qei<TIM1>
Source§impl<const R: u8> Rmp<TIM2, R>
impl<const R: u8> Rmp<TIM2, R>
pub fn pwm_input( self, pins: (impl RInto<<TIM2 as TimC<0>>::In, R>, impl RInto<<TIM2 as TimC<1>>::In, R>), dbg: &mut DBG, mode: Configuration, rcc: &mut Rcc, ) -> PwmInput<TIM2>
pub fn qei( self, pins: (impl RInto<<TIM2 as TimC<0>>::In, R>, impl RInto<<TIM2 as TimC<1>>::In, R>), options: QeiOptions, rcc: &mut Rcc, ) -> Qei<TIM2>
Source§impl<const R: u8> Rmp<TIM3, R>
impl<const R: u8> Rmp<TIM3, R>
pub fn pwm_input( self, pins: (impl RInto<<TIM3 as TimC<0>>::In, R>, impl RInto<<TIM3 as TimC<1>>::In, R>), dbg: &mut DBG, mode: Configuration, rcc: &mut Rcc, ) -> PwmInput<TIM3>
pub fn qei( self, pins: (impl RInto<<TIM3 as TimC<0>>::In, R>, impl RInto<<TIM3 as TimC<1>>::In, R>), options: QeiOptions, rcc: &mut Rcc, ) -> Qei<TIM3>
Source§impl<const R: u8> Rmp<TIM4, R>
impl<const R: u8> Rmp<TIM4, R>
pub fn pwm_input( self, pins: (impl RInto<<TIM4 as TimC<0>>::In, R>, impl RInto<<TIM4 as TimC<1>>::In, R>), dbg: &mut DBG, mode: Configuration, rcc: &mut Rcc, ) -> PwmInput<TIM4>
pub fn qei( self, pins: (impl RInto<<TIM4 as TimC<0>>::In, R>, impl RInto<<TIM4 as TimC<1>>::In, R>), options: QeiOptions, rcc: &mut Rcc, ) -> Qei<TIM4>
Trait Implementations§
Auto Trait Implementations§
impl<T, const R: u8> Freeze for Rmp<T, R>where
T: Freeze,
impl<T, const R: u8> RefUnwindSafe for Rmp<T, R>where
T: RefUnwindSafe,
impl<T, const R: u8> Send for Rmp<T, R>where
T: Send,
impl<T, const R: u8> Sync for Rmp<T, R>where
T: Sync,
impl<T, const R: u8> Unpin for Rmp<T, R>where
T: Unpin,
impl<T, const R: u8> UnwindSafe for Rmp<T, R>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more