Struct esp32c3_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 interrupt_enable(&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: Rate<u32, 1, 1>)

source

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

source§

impl<T> Alarm<T, 0>

source

pub const unsafe fn conjure() -> Alarm<T, 0>

source§

impl<T> Alarm<T, 1>

source

pub const unsafe fn conjure() -> Alarm<T, 1>

source§

impl<T> Alarm<T, 2>

source

pub const unsafe fn conjure() -> Alarm<T, 2>

Trait Implementations§

source§

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

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.