pub struct FutureAdc<I: AdcInstance, F> { /* private fields */ }
Implementations§
Source§impl<I: AdcInstance + PrimaryAdc, F> FutureAdc<I, F>
impl<I: AdcInstance + PrimaryAdc, F> FutureAdc<I, F>
Sourcepub async fn read_cpu_temperature(&mut self, supc: &mut Supc) -> f32
pub async fn read_cpu_temperature(&mut self, supc: &mut Supc) -> f32
Reads the CPU temperature in degrees C.
n.b. Microchip’s errata document for SAM D5x/E5x states:
Both internal temperature sensors, TSENSP and TSENSC, are not supported and should not be used.
Sourcepub async fn read_cpu_voltage(&mut self, src: CpuVoltageSource) -> u16
pub async fn read_cpu_voltage(&mut self, src: CpuVoltageSource) -> u16
Reads a CPU voltage source. Value returned is in millivolts (mV)
Source§impl<I: AdcInstance, F> FutureAdc<I, F>
Implementation for async mode only methods
impl<I: AdcInstance, F> FutureAdc<I, F>
Implementation for async mode only methods
Auto Trait Implementations§
impl<I, F> Freeze for FutureAdc<I, F>
impl<I, F> RefUnwindSafe for FutureAdc<I, F>where
F: RefUnwindSafe,
<I as AdcInstance>::Instance: RefUnwindSafe,
<I as AdcInstance>::ClockId: RefUnwindSafe,
impl<I, F> Send for FutureAdc<I, F>
impl<I, F> Sync for FutureAdc<I, F>
impl<I, F> Unpin for FutureAdc<I, F>
impl<I, F> UnwindSafe for FutureAdc<I, F>where
F: UnwindSafe,
<I as AdcInstance>::Instance: UnwindSafe,
<I as AdcInstance>::ClockId: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more