Struct esp32_hal::Rwdt

source ·
pub struct Rwdt { /* private fields */ }
Expand description

RTC Watchdog Timer

Implementations§

source§

impl Rwdt

RTC Watchdog Timer driver

source

pub fn enable(&mut self)

Enable the watchdog timer instance

source

pub fn disable(&mut self)

Disable the watchdog timer instance

source

pub fn listen(&mut self)

source

pub fn unlisten(&mut self)

source

pub fn clear_interrupt(&mut self)

source

pub fn is_interrupt_set(&self) -> bool

source

pub fn feed(&mut self)

Trait Implementations§

source§

impl Default for Rwdt

source§

fn default() -> Rwdt

Returns the “default value” for a type. Read more
source§

impl Watchdog for Rwdt

source§

fn feed(&mut self)

Triggers the watchdog. This must be done once the watchdog is started to prevent the processor being reset.
source§

impl WatchdogDisable for Rwdt

source§

fn disable(&mut self)

Disables the watchdog
source§

impl WatchdogEnable for Rwdt

§

type Time = Duration<u64, 1, 1000000>

Unit of time used by the watchdog
source§

fn start<T>(&mut self, period: T)
where T: Into<<Rwdt as WatchdogEnable>::Time>,

Starts the watchdog with a given period, typically once this is done the watchdog needs to be kicked periodically or the processor is reset.

Auto Trait Implementations§

§

impl RefUnwindSafe for Rwdt

§

impl Send for Rwdt

§

impl Sync for Rwdt

§

impl Unpin for Rwdt

§

impl UnwindSafe for Rwdt

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.