[][src]Struct msp430fr2x5x_hal::timer::SubTimer

pub struct SubTimer<T: CapCmp<C>, C>(_, _);

Sub-timer associated with a main timer

Each sub-timer has its own interrupt mechanism and threshold, but shares its countdown value with its main timer.

Implementations

impl<T: CapCmp<C>, C> SubTimer<T, C>[src]

pub fn set_count(&mut self, count: u16)[src]

Set the threshold for one of the sub-timers. Once the main timer counts to this threshold the sub-timer will fire. Note that the main timer resets once it counts to its own threshold, not the sub-timer thresholds. It follows that the sub-timer threshold must be less than the main threshold for it to fire.

pub fn wait(&mut self) -> Result<(), Void>[src]

Wait for the sub-timer to fire

pub fn enable_interrupts(&mut self)[src]

Enable the sub-timer interrupts

pub fn disable_interrupts(&mut self)[src]

Disable the sub-timer interrupts

Auto Trait Implementations

impl<T, C> Send for SubTimer<T, C> where
    C: Send,
    T: Send
[src]

impl<T, C> Sync for SubTimer<T, C> where
    C: Sync,
    T: Sync
[src]

impl<T, C> Unpin for SubTimer<T, C> where
    C: Unpin,
    T: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.