[−][src]Struct msp430fr2x5x_hal::timer::SubTimer
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]
C: Send,
T: Send,
impl<T, C> Sync for SubTimer<T, C> where
C: Sync,
T: Sync,
[src]
C: Sync,
T: Sync,
impl<T, C> Unpin for SubTimer<T, C> where
C: Unpin,
T: Unpin,
[src]
C: Unpin,
T: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,