pub struct MonoTimer<TIM, const FREQ: u32> { /* private fields */ }

Implementations§

Releases the TIM peripheral

Methods from Deref<Target = FTimer<TIM, FREQ>>§

Calculate prescaler depending on Clocks state

Starts listening for an event

Note, you will also have to enable the TIM2 interrupt in the NVIC to start receiving events.

Clears interrupt associated with event.

If the interrupt is not cleared, it will immediately retrigger after the ISR has finished.

Stops listening for an event

Stopping timer in debug mode can cause troubles when sampling the signal

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
The type for instant, defining an instant in time. Read more
The type for duration, defining an duration of time. Read more
Optionally resets the counter to zero for a fixed baseline in a system. Read more
Get the current time.
Set the compare value of the timer interrupt. Read more
Clear the compare interrupt flag.
Optional. Commonly used for performing housekeeping of a timer when it has been extended, e.g. a 16 bit timer extended to 32/64 bits. This will be called at the end of the interrupt handler after all other operations have finished. Read more
The time at time zero. Used by RTIC before the monotonic has been initialized.
This tells RTIC if it should disable the interrupt bound to the monotonic if there are no scheduled tasks. One may want to set this to false if one is using the on_interrupt method to perform housekeeping and need overflow interrupts to happen, such as when extending a 16 bit timer to 32/64 bits, even if there are no scheduled tasks. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is enabled. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is disabled. Read more
The type for instant, defining an instant in time. Read more
The type for duration, defining an duration of time. Read more
Optionally resets the counter to zero for a fixed baseline in a system. Read more
Get the current time.
Set the compare value of the timer interrupt. Read more
Clear the compare interrupt flag.
Optional. Commonly used for performing housekeeping of a timer when it has been extended, e.g. a 16 bit timer extended to 32/64 bits. This will be called at the end of the interrupt handler after all other operations have finished. Read more
The time at time zero. Used by RTIC before the monotonic has been initialized.
This tells RTIC if it should disable the interrupt bound to the monotonic if there are no scheduled tasks. One may want to set this to false if one is using the on_interrupt method to perform housekeeping and need overflow interrupts to happen, such as when extending a 16 bit timer to 32/64 bits, even if there are no scheduled tasks. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is enabled. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is disabled. Read more
The type for instant, defining an instant in time. Read more
The type for duration, defining an duration of time. Read more
Optionally resets the counter to zero for a fixed baseline in a system. Read more
Get the current time.
Set the compare value of the timer interrupt. Read more
Clear the compare interrupt flag.
Optional. Commonly used for performing housekeeping of a timer when it has been extended, e.g. a 16 bit timer extended to 32/64 bits. This will be called at the end of the interrupt handler after all other operations have finished. Read more
The time at time zero. Used by RTIC before the monotonic has been initialized.
This tells RTIC if it should disable the interrupt bound to the monotonic if there are no scheduled tasks. One may want to set this to false if one is using the on_interrupt method to perform housekeeping and need overflow interrupts to happen, such as when extending a 16 bit timer to 32/64 bits, even if there are no scheduled tasks. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is enabled. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is disabled. Read more
The type for instant, defining an instant in time. Read more
The type for duration, defining an duration of time. Read more
Optionally resets the counter to zero for a fixed baseline in a system. Read more
Get the current time.
Set the compare value of the timer interrupt. Read more
Clear the compare interrupt flag.
Optional. Commonly used for performing housekeeping of a timer when it has been extended, e.g. a 16 bit timer extended to 32/64 bits. This will be called at the end of the interrupt handler after all other operations have finished. Read more
The time at time zero. Used by RTIC before the monotonic has been initialized.
This tells RTIC if it should disable the interrupt bound to the monotonic if there are no scheduled tasks. One may want to set this to false if one is using the on_interrupt method to perform housekeeping and need overflow interrupts to happen, such as when extending a 16 bit timer to 32/64 bits, even if there are no scheduled tasks. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is enabled. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is disabled. Read more
The type for instant, defining an instant in time. Read more
The type for duration, defining an duration of time. Read more
Optionally resets the counter to zero for a fixed baseline in a system. Read more
Get the current time.
Set the compare value of the timer interrupt. Read more
Clear the compare interrupt flag.
Optional. Commonly used for performing housekeeping of a timer when it has been extended, e.g. a 16 bit timer extended to 32/64 bits. This will be called at the end of the interrupt handler after all other operations have finished. Read more
The time at time zero. Used by RTIC before the monotonic has been initialized.
This tells RTIC if it should disable the interrupt bound to the monotonic if there are no scheduled tasks. One may want to set this to false if one is using the on_interrupt method to perform housekeeping and need overflow interrupts to happen, such as when extending a 16 bit timer to 32/64 bits, even if there are no scheduled tasks. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is enabled. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is disabled. Read more
The type for instant, defining an instant in time. Read more
The type for duration, defining an duration of time. Read more
Optionally resets the counter to zero for a fixed baseline in a system. Read more
Get the current time.
Set the compare value of the timer interrupt. Read more
Clear the compare interrupt flag.
Optional. Commonly used for performing housekeeping of a timer when it has been extended, e.g. a 16 bit timer extended to 32/64 bits. This will be called at the end of the interrupt handler after all other operations have finished. Read more
The time at time zero. Used by RTIC before the monotonic has been initialized.
This tells RTIC if it should disable the interrupt bound to the monotonic if there are no scheduled tasks. One may want to set this to false if one is using the on_interrupt method to perform housekeeping and need overflow interrupts to happen, such as when extending a 16 bit timer to 32/64 bits, even if there are no scheduled tasks. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is enabled. Read more
Optional. This is used to save power, this is called when the Monotonic interrupt is disabled. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.