stm32-metapac

Crates

git

Versions

stm32u5f9zi

Flavors

Tcr

Struct Tcr 

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

GFXTIM timers configuration register.

Tuple Fields§

§0: u32

Implementations§

§

impl Tcr

pub const fn afcen(&self) -> bool

absolute frame counter enable This bit enables the absolute frame counter.

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

absolute frame counter enable This bit enables the absolute frame counter.

pub const fn fafcr(&self) -> bool

force absolute frame counter reset This bit forces the reset of the absolute frame counter.

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

force absolute frame counter reset This bit forces the reset of the absolute frame counter.

pub const fn alcen(&self) -> bool

absolute line counter enable This bit enables the absolute line counter.

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

absolute line counter enable This bit enables the absolute line counter.

pub const fn falcr(&self) -> bool

force absolute line counter reset This bit forces the reset of the absolute line counter.

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

force absolute line counter reset This bit forces the reset of the absolute line counter.

pub const fn rfc1en(&self) -> bool

relative frame counter 1 enable This bit enables the relative frame counter 1.

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

relative frame counter 1 enable This bit enables the relative frame counter 1.

pub const fn rfc1cm(&self) -> bool

relative frame counter 1 continuous mode This bit enables the continuous mode of the relative frame counter 1.

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

relative frame counter 1 continuous mode This bit enables the continuous mode of the relative frame counter 1.

pub const fn frfc1r(&self) -> bool

force relative frame counter 1 reload This bit forces the reload of the relative frame counter 1.

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

force relative frame counter 1 reload This bit forces the reload of the relative frame counter 1.

pub const fn rfc2en(&self) -> bool

relative frame counter 2 enable This bit enables the relative frame counter 2.

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

relative frame counter 2 enable This bit enables the relative frame counter 2.

pub const fn rfc2cm(&self) -> bool

relative frame counter 2 continuous mode This bit enables the continuous mode of the relative frame counter 2.

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

relative frame counter 2 continuous mode This bit enables the continuous mode of the relative frame counter 2.

pub const fn frfc2r(&self) -> bool

force relative frame counter 2 reload This bit forces the reload of the relative frame counter 2.

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

force relative frame counter 2 reload This bit forces the reload of the relative frame counter 2.

Trait Implementations§

§

impl Clone for Tcr

§

fn clone(&self) -> Tcr

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 Tcr

§

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

Formats the value using the given formatter. Read more
§

impl Default for Tcr

§

fn default() -> Tcr

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

impl PartialEq for Tcr

§

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

§

impl Eq for Tcr

§

impl StructuralPartialEq for Tcr

Auto Trait Implementations§

§

impl Freeze for Tcr

§

impl RefUnwindSafe for Tcr

§

impl Send for Tcr

§

impl Sync for Tcr

§

impl Unpin for Tcr

§

impl UnwindSafe for Tcr

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.