stm32-metapac

Crates

git

Versions

stm32g474rb

Flavors

Timxcr2

Struct Timxcr2 

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

HRTIM Timer X Control Register 2

Tuple Fields§

§0: u32

Implementations§

§

impl Timxcr2

pub const fn dcde(&self) -> bool

Dual Channel DAC trigger enable

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

Dual Channel DAC trigger enable

pub const fn dcds(&self) -> bool

Dual Channel DAC Step trigger

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

Dual Channel DAC Step trigger

pub const fn dcdr(&self) -> bool

Dual Channel DAC Reset trigger

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

Dual Channel DAC Reset trigger

pub const fn udm(&self) -> bool

Up-Down Mode

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

Up-Down Mode

pub const fn rom(&self) -> u8

Roll-Over Mode

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

Roll-Over Mode

pub const fn outrom(&self) -> u8

Output Roll-Over Mode

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

Output Roll-Over Mode

pub const fn adrom(&self) -> u8

ADC Roll-Over Mode

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

ADC Roll-Over Mode

pub const fn bmrom(&self) -> u8

Burst Mode Roll-Over Mode

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

Burst Mode Roll-Over Mode

pub const fn ferom(&self) -> u8

Fault and Event Roll-Over Mode

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

Fault and Event Roll-Over Mode

pub const fn gtcmp1(&self) -> bool

Greater than Compare 1 PWM mode

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

Greater than Compare 1 PWM mode

pub const fn gtcmp3(&self) -> bool

Greater than Compare 3 PWM mode

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

Greater than Compare 3 PWM mode

pub const fn trghlf(&self) -> bool

Triggered-half mode

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

Triggered-half mode

Trait Implementations§

§

impl Clone for Timxcr2

§

fn clone(&self) -> Timxcr2

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for Timxcr2

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for Timxcr2

§

fn default() -> Timxcr2

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

impl PartialEq for Timxcr2

§

fn eq(&self, other: &Timxcr2) -> 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 Timxcr2

§

impl Eq for Timxcr2

§

impl StructuralPartialEq for Timxcr2

Auto Trait Implementations§

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, dest: *mut u8)

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