[−][src]Struct ds18b20::Ds18b20
Implementations
impl Ds18b20
[src]
pub fn new<E>(address: Address) -> OneWireResult<Ds18b20, E>
[src]
Checks that the given address contains the correct family code, reads configuration data, then returns a device
pub fn address(&self) -> &Address
[src]
Returns the device address
pub fn start_temp_measurement<T, E>(
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
[src]
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
Starts a temperature measurement for just this device You should wait for the measurement to finish before reading the measurement. The amount of time you need to wait depends on the current resolution configuration
pub fn read_data<T, E>(
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<SensorData, E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
[src]
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<SensorData, E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
pub fn set_config<T, E>(
&self,
alarm_temp_low: i8,
alarm_temp_high: i8,
resolution: Resolution,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
[src]
&self,
alarm_temp_low: i8,
alarm_temp_high: i8,
resolution: Resolution,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
pub fn save_to_eeprom<T, E>(
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
[src]
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
pub fn recall_from_eeprom<T, E>(
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
[src]
&self,
onewire: &mut OneWire<T>,
delay: &mut impl DelayUs<u16>
) -> OneWireResult<(), E> where
T: InputPin<Error = E>,
T: OutputPin<Error = E>,
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,