pub struct Gfxtim<'d, T: Instance> { /* private fields */ }Expand description
GFXTIM driver.
Implementations§
Source§impl<'d, T: Instance> Gfxtim<'d, T>
impl<'d, T: Instance> Gfxtim<'d, T>
Sourcepub fn new(
peri: Peri<'d, T>,
_irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd,
) -> Self
pub fn new( peri: Peri<'d, T>, _irq: impl Binding<T::Interrupt, InterruptHandler<T>> + 'd, ) -> Self
Create a GFXTIM instance.
Sourcepub fn set_counter_reload(&mut self, lines_per_frame: u16, pixels_per_line: u32)
pub fn set_counter_reload(&mut self, lines_per_frame: u16, pixels_per_line: u32)
Set line and frame counter reload values.
Sourcepub fn start_counters(&mut self)
pub fn start_counters(&mut self)
Enable the absolute line and frame counters.
Sourcepub fn stop_counters(&mut self)
pub fn stop_counters(&mut self)
Disable the absolute line and frame counters.
Sourcepub fn line_counter(&self) -> u16
pub fn line_counter(&self) -> u16
Read absolute line counter.
Sourcepub fn frame_counter(&self) -> u32
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more