Struct esp_hal::systimer::Alarm

source ·
pub struct Alarm<MODE, const CHANNEL: u8> { /* private fields */ }

Implementations§

source§

impl<T, const CHANNEL: u8> Alarm<T, CHANNEL>

source

pub fn enable_interrupt(&self, val: bool)

source

pub fn clear_interrupt(&self)

source§

impl<const CHANNEL: u8> Alarm<Target, CHANNEL>

source

pub fn set_target(&self, timestamp: u64)

source

pub fn into_periodic(self) -> Alarm<Periodic, CHANNEL>

source§

impl<const CHANNEL: u8> Alarm<Periodic, CHANNEL>

source

pub fn set_period(&self, period: MicrosDurationU32)

source

pub fn into_target(self) -> Alarm<Target, CHANNEL>

source§

impl<T> Alarm<T, 0>

source

pub const unsafe fn conjure() -> Self

Conjure an alarm out of thin air.

§Safety

Users must take care to ensure that only one reference to the timer is in scope at any given time.

source§

impl<T> Alarm<T, 1>

source

pub const unsafe fn conjure() -> Self

Conjure an alarm out of thin air.

§Safety

Users must take care to ensure that only one reference to the timer is in scope at any given time.

source§

impl<T> Alarm<T, 2>

source

pub const unsafe fn conjure() -> Self

Conjure an alarm out of thin air.

§Safety

Users must take care to ensure that only one reference to the timer is in scope at any given time.

Trait Implementations§

source§

impl<MODE: Debug, const CHANNEL: u8> Debug for Alarm<MODE, CHANNEL>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<MODE, const CHANNEL: u8> Freeze for Alarm<MODE, CHANNEL>

§

impl<MODE, const CHANNEL: u8> RefUnwindSafe for Alarm<MODE, CHANNEL>
where MODE: RefUnwindSafe,

§

impl<MODE, const CHANNEL: u8> Send for Alarm<MODE, CHANNEL>
where MODE: Send,

§

impl<MODE, const CHANNEL: u8> Sync for Alarm<MODE, CHANNEL>
where MODE: Sync,

§

impl<MODE, const CHANNEL: u8> Unpin for Alarm<MODE, CHANNEL>
where MODE: Unpin,

§

impl<MODE, const CHANNEL: u8> UnwindSafe for Alarm<MODE, CHANNEL>
where MODE: UnwindSafe,

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

§

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

§

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.