stm32-metapac

Crates

git

Versions

stm32h7p5qi

Flavors

Skip to main content

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 const fn set_dcde(&mut self, val: bool)

Dual channel DAC trigger enable.

pub const fn dcds(&self) -> bool

Dual channel DAC Step trigger.

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

Dual channel DAC Step trigger.

pub const fn dcdr(&self) -> bool

Dual channel DAC reset trigger.

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

Dual channel DAC reset trigger.

pub const fn udm(&self) -> bool

Up-Down mode.

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

Up-Down mode.

pub const fn rom(&self) -> Rom

Roll-over mode.

pub const fn set_rom(&mut self, val: Rom)

Roll-over mode.

pub const fn outrom(&self) -> Rom

Output roll-over mode.

pub const fn set_outrom(&mut self, val: Rom)

Output roll-over mode.

pub const fn adrom(&self) -> Rom

ADC roll-over mode.

pub const fn set_adrom(&mut self, val: Rom)

ADC roll-over mode.

pub const fn bmrom(&self) -> Rom

Burst mode roll-over mode.

pub const fn set_bmrom(&mut self, val: Rom)

Burst mode roll-over mode.

pub const fn ferom(&self) -> Rom

Fault and event roll-over mode.

pub const fn set_ferom(&mut self, val: Rom)

Fault and event roll-over mode.

pub const fn gtcmp1(&self) -> bool

Greater than compare 1 PWM mode.

pub const 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 const fn set_gtcmp3(&mut self, val: bool)

Greater than compare 3 PWM mode.

pub const fn trghlf(&self) -> bool

Triggered-half mode.

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

Triggered-half mode.

pub const fn trghlft(&self) -> bool

Triggered-half timeout mode.

pub const fn set_trghlft(&mut self, val: bool)

Triggered-half timeout mode.

pub const fn adctrgch1(&self) -> bool

ADC trigger for channel 1.

pub const fn set_adctrgch1(&mut self, val: bool)

ADC trigger for channel 1.

pub const fn adctrgch2(&self) -> bool

ADC trigger for channel 2.

pub const fn set_adctrgch2(&mut self, val: bool)

ADC trigger for channel 2.

pub const fn coe(&self) -> bool

Crossbar override enable.

pub const fn set_coe(&mut self, val: bool)

Crossbar override enable.

pub const fn cor(&self) -> bool

Crossbar override rearm.

pub const fn set_cor(&mut self, val: bool)

Crossbar override rearm.

pub const fn com(&self) -> bool

Crossbar override mode.

pub const fn set_com(&mut self, val: bool)

Crossbar override mode.

pub const fn dcdcoe(&self) -> bool

Dual channel DAC crossbar override enable.

pub const fn set_dcdcoe(&mut self, val: bool)

Dual channel DAC crossbar override enable.

Trait Implementations§

§

impl Clone for Timxcr2

§

fn clone(&self) -> Timxcr2

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
§

impl Copy for Timxcr2

§

impl Default for Timxcr2

§

fn default() -> Timxcr2

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

impl Eq for Timxcr2

§

impl PartialEq for Timxcr2

§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
§

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 = !

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.