pub struct DeviceSettings {}Fields§
§interval: u16§db_mode: u16§db_ref: u16§temp_offset: i16Offset * 10, but seems to be different for C/F unit?! [range -999.9 - 999.9] Conversion is wrong in device, the value is always in Fahrenheit, but the formula used is F=C9/5, not F=C9/5+32.
temp_unit: u16§bl_off: u16§clock: u32§po_off: u16§hz: u16§digits: u16§beep: u16§rec_tolerance: u16§unknown1: u8§unknown2: u16Implementations§
Source§impl DeviceSettings
impl DeviceSettings
pub fn beeper(&self) -> bool
pub fn set_beeper(&mut self, beep: bool)
pub fn digit_count(&self) -> DigitCount
pub fn set_digit_count(&mut self, digits: DigitCount)
pub fn ac_hertz(&self) -> AcHertz
pub fn set_ac_hertz(&mut self, hertz: AcHertz)
pub fn backlight_off(&self) -> u16
pub fn set_backlight_off(&mut self, seconds: u16)
pub fn autopower_off(&self) -> u16
pub fn set_autopower_off(&mut self, minutes: u16)
pub fn temp_unit(&self) -> TempUnit
pub fn set_temp_unit(&mut self, unit: TempUnit)
pub fn db_mode(&self) -> DbMode
pub fn set_db_mode(&mut self, mode: DbMode)
pub fn recording_thd(&self) -> u8
pub fn set_recording_thd(&mut self, thd: u8)
pub fn recording_interval(&self) -> u16
pub fn set_recording_interval(&mut self, seconds: u16)
pub fn d_bm_ref(&self) -> u16
pub fn set_d_bm_ref(&mut self, ohm: u16)
pub fn temp_offset(&self) -> i16
pub fn set_temp_offset(&mut self, offset: i16)
pub fn clock(&self) -> NaiveTime
pub fn set_clock(&mut self, time: NaiveTime)
pub fn as_bytes(&self) -> Result<Bytes, Error>
Trait Implementations§
Source§impl Clone for DeviceSettings
impl Clone for DeviceSettings
Source§fn clone(&self) -> DeviceSettings
fn clone(&self) -> DeviceSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceSettings
impl Debug for DeviceSettings
Source§impl Default for DeviceSettings
impl Default for DeviceSettings
Source§fn default() -> DeviceSettings
fn default() -> DeviceSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceSettings
impl RefUnwindSafe for DeviceSettings
impl Send for DeviceSettings
impl Sync for DeviceSettings
impl Unpin for DeviceSettings
impl UnwindSafe for DeviceSettings
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