Struct ch32v3::ch32v30x::rcc::apb1pcenr::R

source ·
pub struct R(_);
Expand description

Register APB1PCENR reader

Implementations§

source§

impl R

source

pub fn tim2en(&self) -> TIM2EN_R

Bit 0 - Timer 2 clock enable

source

pub fn tim3en(&self) -> TIM3EN_R

Bit 1 - Timer 3 clock enable

source

pub fn tim4en(&self) -> TIM4EN_R

Bit 2 - Timer 4 clock enable

source

pub fn tim5en(&self) -> TIM5EN_R

Bit 3 - Timer 5 clock enable

source

pub fn tim6en(&self) -> TIM6EN_R

Bit 4 - Timer 6 clock enable

source

pub fn tim7en(&self) -> TIM7EN_R

Bit 5 - Timer 7 clock enable

source

pub fn usart6_en(&self) -> USART6_EN_R

Bit 6 - USART 6 clock enable

source

pub fn usart7_en(&self) -> USART7_EN_R

Bit 7 - USART 7 clock enable

source

pub fn usart8_en(&self) -> USART8_EN_R

Bit 8 - USART 8 clock enable

source

pub fn wwdgen(&self) -> WWDGEN_R

Bit 11 - Window watchdog clock enable

source

pub fn spi2en(&self) -> SPI2EN_R

Bit 14 - SPI 2 clock enable

source

pub fn spi3en(&self) -> SPI3EN_R

Bit 15 - SPI 3 clock enable

source

pub fn usart2en(&self) -> USART2EN_R

Bit 17 - USART 2 clock enable

source

pub fn usart3en(&self) -> USART3EN_R

Bit 18 - USART 3 clock enable

source

pub fn uart4en(&self) -> UART4EN_R

Bit 19 - UART 4 clock enable

source

pub fn uart5en(&self) -> UART5EN_R

Bit 20 - UART 5 clock enable

source

pub fn i2c1en(&self) -> I2C1EN_R

Bit 21 - I2C 1 clock enable

source

pub fn i2c2en(&self) -> I2C2EN_R

Bit 22 - I2C 2 clock enable

source

pub fn usbden(&self) -> USBDEN_R

Bit 23 - USBD clock enable

source

pub fn can1en(&self) -> CAN1EN_R

Bit 25 - CAN1 clock enable

source

pub fn can2en(&self) -> CAN2EN_R

Bit 26 - CAN2 clock enable

source

pub fn bkpen(&self) -> BKPEN_R

Bit 27 - Backup interface clock enable

source

pub fn pwren(&self) -> PWREN_R

Bit 28 - Power interface clock enable

source

pub fn dacen(&self) -> DACEN_R

Bit 29 - DAC interface clock enable

Methods from Deref<Target = R<APB1PCENR_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<APB1PCENR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl From<R<APB1PCENR_SPEC>> for R

source§

fn from(reader: R<APB1PCENR_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

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.