#[repr(transparent)]pub struct Shield(pub u32);Expand description
TSI Shield Register. M_SEN_RES has only example values 0, 1, 2 and 14; the source does not establish a complete resistor conversion for all 6-bit values. Kept numeric without inventing holes or a formula.
Tuple Fields§
§0: u32Implementations§
Source§impl Shield
impl Shield
Sourcepub const fn m_sen_res(&self) -> u8
pub const fn m_sen_res(&self) -> u8
Six-bit raw resistor trim. Documented examples only: 0=10 kohm, 1=10+(2.5/3) kohm (auto-calibration), 2=12.5 kohm, 14=25 kohm. Other codes unspecified.
Sourcepub const fn set_m_sen_res(&mut self, val: u8)
pub const fn set_m_sen_res(&mut self, val: u8)
Six-bit raw resistor trim. Documented examples only: 0=10 kohm, 1=10+(2.5/3) kohm (auto-calibration), 2=12.5 kohm, 14=25 kohm. Other codes unspecified.
Trait Implementations§
impl Copy for Shield
impl Eq for Shield
impl StructuralPartialEq for Shield
Auto Trait Implementations§
impl Freeze for Shield
impl RefUnwindSafe for Shield
impl Send for Shield
impl Sync for Shield
impl Unpin for Shield
impl UnwindSafe for Shield
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