pub struct Slice(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl Slice
impl Slice
sourcepub fn sda_hys(&self) -> u8
pub fn sda_hys(&self) -> u8
Adds hysteresis where there are now two thresholds, the lower threshold which is always the value programmed by SDAC[5:0] and the higher threshold that is:
11
: 255 mV hysteresis: higher threshold = (SDAC value + 20hex)10
: 170 mV hysteresis: higher threshold = (SDAC value + Ahex)01
: 85 mV hysteresis: higher threshold = (SDAC value + 5)00
: No hysteresis: higher threshold = SDAC value
sourcepub fn with_sda_hys(self, value: u8) -> Self
pub fn with_sda_hys(self, value: u8) -> Self
Adds hysteresis where there are now two thresholds, the lower threshold which is always the value programmed by SDAC[5:0] and the higher threshold that is:
11
: 255 mV hysteresis: higher threshold = (SDAC value + 20hex)10
: 170 mV hysteresis: higher threshold = (SDAC value + Ahex)01
: 85 mV hysteresis: higher threshold = (SDAC value + 5)00
: No hysteresis: higher threshold = SDAC value
sourcepub fn set_sda_hys(&mut self, value: u8)
pub fn set_sda_hys(&mut self, value: u8)
Adds hysteresis where there are now two thresholds, the lower threshold which is always the value programmed by SDAC[5:0] and the higher threshold that is:
11
: 255 mV hysteresis: higher threshold = (SDAC value + 20hex)10
: 170 mV hysteresis: higher threshold = (SDAC value + Ahex)01
: 85 mV hysteresis: higher threshold = (SDAC value + 5)00
: No hysteresis: higher threshold = SDAC value
sourcepub fn sdac(&self) -> u8
pub fn sdac(&self) -> u8
BMC Slicer DAC data input. Allows for a programmable threshold so as to meet the BMC receive mask under all noise conditions.
Trait Implementations§
source§impl PartialEq for Slice
impl PartialEq for Slice
impl Copy for Slice
impl Eq for Slice
impl StructuralPartialEq for Slice
Auto Trait Implementations§
impl Freeze for Slice
impl RefUnwindSafe for Slice
impl Send for Slice
impl Sync for Slice
impl Unpin for Slice
impl UnwindSafe for Slice
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
source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.