embassy-stm32

Crates

git

Versions

stm32n657b0

Flavors

Gfxtim

Struct Gfxtim 

Source
pub struct Gfxtim<'d, T: Instance> { /* private fields */ }
Expand description

GFXTIM driver.

Implementations§

Source§

impl<'d, T: Instance> Gfxtim<'d, T>

Source

pub fn new( peri: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, ) -> Self

Create a GFXTIM instance.

Source

pub fn set_counter_reload(&mut self, lines_per_frame: u16, pixels_per_line: u32)

Set line and frame counter reload values.

Source

pub fn start_counters(&mut self)

Enable the absolute line and frame counters.

Source

pub fn stop_counters(&mut self)

Disable the absolute line and frame counters.

Source

pub fn line_counter(&self) -> u16

Read absolute line counter.

Source

pub fn frame_counter(&self) -> u32

Read absolute frame counter.

Auto Trait Implementations§

§

impl<'d, T> Freeze for Gfxtim<'d, T>
where T: Freeze,

§

impl<'d, T> RefUnwindSafe for Gfxtim<'d, T>
where T: RefUnwindSafe,

§

impl<'d, T> Send for Gfxtim<'d, T>
where T: Send,

§

impl<'d, T> Sync for Gfxtim<'d, T>
where T: Sync,

§

impl<'d, T> Unpin for Gfxtim<'d, T>
where T: Unpin,

§

impl<'d, T> !UnwindSafe for Gfxtim<'d, T>

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> 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.