Type Alias TemperatureRp2040ComponentType

Source
pub type TemperatureRp2040ComponentType<A> = TemperatureRp2040<'static, A>;

Aliased Type§

struct TemperatureRp2040ComponentType<A> { /* private fields */ }

Implementations

Source§

impl<'a, A> TemperatureRp2040<'a, A>
where A: AdcChannel<'a>,

Source

pub fn new(adc: &'a A, slope: f32, v_27: f32) -> TemperatureRp2040<'a, A>

slope - device specific slope found in datasheet v_27 - voltage at 27 degrees Celsius found in datasheet

Trait Implementations

Source§

impl<'a, A> Client for TemperatureRp2040<'a, A>
where A: AdcChannel<'a>,

Source§

fn sample_ready(&self, sample: u16)

Called when a sample is ready.
Source§

impl<'a, A> TemperatureDriver<'a> for TemperatureRp2040<'a, A>
where A: AdcChannel<'a>,

Source§

fn set_client(&self, temperature_client: &'a dyn TemperatureClient)

Source§

fn read_temperature(&self) -> Result<(), ErrorCode>