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, sysctrl: &mut Sysctrl) -> f32
pub async fn read_cpu_temperature(&mut self, sysctrl: &mut Sysctrl) -> f32
Reads the CPU temperature. Value returned is in Celcius
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>
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>
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