AlphaChipADebug

Struct AlphaChipADebug 

Source
pub struct AlphaChipADebug(/* private fields */);

Implementations§

Source§

impl AlphaChipADebug

Source

pub const fn new() -> Self

Creates a new default initialized bitfield.

Source

pub const fn from_bits(bits: u64) -> Self

Convert from bits.

Source

pub const fn into_bits(self) -> u64

Convert into bits.

Source

pub const fn chip_id(&self) -> u8

Bits: 0..4

Source

pub const fn with_chip_id_checked(self, value: u8) -> Result<Self, ()>

Bits: 0..4

Source

pub const fn with_chip_id(self, value: u8) -> Self

Bits: 0..4

Source

pub const fn set_chip_id(&mut self, value: u8)

Bits: 0..4

Source

pub const fn set_chip_id_checked(&mut self, value: u8) -> Result<(), ()>

Bits: 0..4

Source

pub const fn die_temp(&self) -> f32

Temperatue of ADBMS die

Units: C

Bits: 4..17

Source

pub const fn with_die_temp_checked(self, value: f32) -> Result<Self, ()>

Temperatue of ADBMS die

Units: C

Bits: 4..17

Source

pub const fn with_die_temp(self, value: f32) -> Self

Temperatue of ADBMS die

Units: C

Bits: 4..17

Source

pub const fn set_die_temp(&mut self, value: f32)

Temperatue of ADBMS die

Units: C

Bits: 4..17

Source

pub const fn set_die_temp_checked(&mut self, value: f32) -> Result<(), ()>

Temperatue of ADBMS die

Units: C

Bits: 4..17

Source

pub const fn vpv(&self) -> f32

Positive ADBMS voltage

Units: V

Bits: 17..30

Source

pub const fn with_vpv_checked(self, value: f32) -> Result<Self, ()>

Positive ADBMS voltage

Units: V

Bits: 17..30

Source

pub const fn with_vpv(self, value: f32) -> Self

Positive ADBMS voltage

Units: V

Bits: 17..30

Source

pub const fn set_vpv(&mut self, value: f32)

Positive ADBMS voltage

Units: V

Bits: 17..30

Source

pub const fn set_vpv_checked(&mut self, value: f32) -> Result<(), ()>

Positive ADBMS voltage

Units: V

Bits: 17..30

Source

pub const fn vmv(&self) -> f32

Voltage of S1N to V- of ADBMS

Units: V

Bits: 30..43

Source

pub const fn with_vmv_checked(self, value: f32) -> Result<Self, ()>

Voltage of S1N to V- of ADBMS

Units: V

Bits: 30..43

Source

pub const fn with_vmv(self, value: f32) -> Self

Voltage of S1N to V- of ADBMS

Units: V

Bits: 30..43

Source

pub const fn set_vmv(&mut self, value: f32)

Voltage of S1N to V- of ADBMS

Units: V

Bits: 30..43

Source

pub const fn set_vmv_checked(&mut self, value: f32) -> Result<(), ()>

Voltage of S1N to V- of ADBMS

Units: V

Bits: 30..43

Source

pub const fn va_ov(&self) -> bool

Whether 5V Analog rail went over

Bits: 43..44

Source

pub const fn with_va_ov_checked(self, value: bool) -> Result<Self, ()>

Whether 5V Analog rail went over

Bits: 43..44

Source

pub const fn with_va_ov(self, value: bool) -> Self

Whether 5V Analog rail went over

Bits: 43..44

Source

pub const fn set_va_ov(&mut self, value: bool)

Whether 5V Analog rail went over

Bits: 43..44

Source

pub const fn set_va_ov_checked(&mut self, value: bool) -> Result<(), ()>

Whether 5V Analog rail went over

Bits: 43..44

Source

pub const fn va_uv(&self) -> bool

Whether 5V Analog rail went under

Bits: 44..45

Source

pub const fn with_va_uv_checked(self, value: bool) -> Result<Self, ()>

Whether 5V Analog rail went under

Bits: 44..45

Source

pub const fn with_va_uv(self, value: bool) -> Self

Whether 5V Analog rail went under

Bits: 44..45

Source

pub const fn set_va_uv(&mut self, value: bool)

Whether 5V Analog rail went under

Bits: 44..45

Source

pub const fn set_va_uv_checked(&mut self, value: bool) -> Result<(), ()>

Whether 5V Analog rail went under

Bits: 44..45

Source

pub const fn vd_ov(&self) -> bool

Whether 3V digital rail went over

Bits: 45..46

Source

pub const fn with_vd_ov_checked(self, value: bool) -> Result<Self, ()>

Whether 3V digital rail went over

Bits: 45..46

Source

pub const fn with_vd_ov(self, value: bool) -> Self

Whether 3V digital rail went over

Bits: 45..46

Source

pub const fn set_vd_ov(&mut self, value: bool)

Whether 3V digital rail went over

Bits: 45..46

Source

pub const fn set_vd_ov_checked(&mut self, value: bool) -> Result<(), ()>

Whether 3V digital rail went over

Bits: 45..46

Source

pub const fn vd_uv(&self) -> bool

Whether 3V digital rail went under

Bits: 46..47

Source

pub const fn with_vd_uv_checked(self, value: bool) -> Result<Self, ()>

Whether 3V digital rail went under

Bits: 46..47

Source

pub const fn with_vd_uv(self, value: bool) -> Self

Whether 3V digital rail went under

Bits: 46..47

Source

pub const fn set_vd_uv(&mut self, value: bool)

Whether 3V digital rail went under

Bits: 46..47

Source

pub const fn set_vd_uv_checked(&mut self, value: bool) -> Result<(), ()>

Whether 3V digital rail went under

Bits: 46..47

Source

pub const fn vde(&self) -> bool

5V supply differed from Vreg by 0.5V+

Bits: 47..48

Source

pub const fn with_vde_checked(self, value: bool) -> Result<Self, ()>

5V supply differed from Vreg by 0.5V+

Bits: 47..48

Source

pub const fn with_vde(self, value: bool) -> Self

5V supply differed from Vreg by 0.5V+

Bits: 47..48

Source

pub const fn set_vde(&mut self, value: bool)

5V supply differed from Vreg by 0.5V+

Bits: 47..48

Source

pub const fn set_vde_checked(&mut self, value: bool) -> Result<(), ()>

5V supply differed from Vreg by 0.5V+

Bits: 47..48

Source

pub const fn vdel(&self) -> bool

All 5V supply differed from Vreg by 0.5V+

Bits: 48..49

Source

pub const fn with_vdel_checked(self, value: bool) -> Result<Self, ()>

All 5V supply differed from Vreg by 0.5V+

Bits: 48..49

Source

pub const fn with_vdel(self, value: bool) -> Self

All 5V supply differed from Vreg by 0.5V+

Bits: 48..49

Source

pub const fn set_vdel(&mut self, value: bool)

All 5V supply differed from Vreg by 0.5V+

Bits: 48..49

Source

pub const fn set_vdel_checked(&mut self, value: bool) -> Result<(), ()>

All 5V supply differed from Vreg by 0.5V+

Bits: 48..49

Source

pub const fn spiflt(&self) -> bool

Redundant SPI slave mismatch

Bits: 49..50

Source

pub const fn with_spiflt_checked(self, value: bool) -> Result<Self, ()>

Redundant SPI slave mismatch

Bits: 49..50

Source

pub const fn with_spiflt(self, value: bool) -> Self

Redundant SPI slave mismatch

Bits: 49..50

Source

pub const fn set_spiflt(&mut self, value: bool)

Redundant SPI slave mismatch

Bits: 49..50

Source

pub const fn set_spiflt_checked(&mut self, value: bool) -> Result<(), ()>

Redundant SPI slave mismatch

Bits: 49..50

Source

pub const fn sleep(&self) -> bool

Sleep mode previously occured

Bits: 50..51

Source

pub const fn with_sleep_checked(self, value: bool) -> Result<Self, ()>

Sleep mode previously occured

Bits: 50..51

Source

pub const fn with_sleep(self, value: bool) -> Self

Sleep mode previously occured

Bits: 50..51

Source

pub const fn set_sleep(&mut self, value: bool)

Sleep mode previously occured

Bits: 50..51

Source

pub const fn set_sleep_checked(&mut self, value: bool) -> Result<(), ()>

Sleep mode previously occured

Bits: 50..51

Source

pub const fn thsd(&self) -> bool

Thermal shutdown occured/occuring

Bits: 51..52

Source

pub const fn with_thsd_checked(self, value: bool) -> Result<Self, ()>

Thermal shutdown occured/occuring

Bits: 51..52

Source

pub const fn with_thsd(self, value: bool) -> Self

Thermal shutdown occured/occuring

Bits: 51..52

Source

pub const fn set_thsd(&mut self, value: bool)

Thermal shutdown occured/occuring

Bits: 51..52

Source

pub const fn set_thsd_checked(&mut self, value: bool) -> Result<(), ()>

Thermal shutdown occured/occuring

Bits: 51..52

Source

pub const fn tmodchk(&self) -> bool

Test mode occured/occuring

Bits: 52..53

Source

pub const fn with_tmodchk_checked(self, value: bool) -> Result<Self, ()>

Test mode occured/occuring

Bits: 52..53

Source

pub const fn with_tmodchk(self, value: bool) -> Self

Test mode occured/occuring

Bits: 52..53

Source

pub const fn set_tmodchk(&mut self, value: bool)

Test mode occured/occuring

Bits: 52..53

Source

pub const fn set_tmodchk_checked(&mut self, value: bool) -> Result<(), ()>

Test mode occured/occuring

Bits: 52..53

Source

pub const fn oscchk(&self) -> bool

Oscillator drift during ADC conversion detected

Bits: 53..54

Source

pub const fn with_oscchk_checked(self, value: bool) -> Result<Self, ()>

Oscillator drift during ADC conversion detected

Bits: 53..54

Source

pub const fn with_oscchk(self, value: bool) -> Self

Oscillator drift during ADC conversion detected

Bits: 53..54

Source

pub const fn set_oscchk(&mut self, value: bool)

Oscillator drift during ADC conversion detected

Bits: 53..54

Source

pub const fn set_oscchk_checked(&mut self, value: bool) -> Result<(), ()>

Oscillator drift during ADC conversion detected

Bits: 53..54

Source§

impl AlphaChipADebug

Source

pub fn try_with_die_temp(self, v: f32) -> Result<Self, OutOfRange>

Like Self::with_die_temp but returns OutOfRange instead of saturating an unrepresentable value.

Source

pub fn try_set_die_temp(&mut self, v: f32) -> Result<(), OutOfRange>

Like Self::set_die_temp but returns OutOfRange instead of saturating an unrepresentable value.

Source

pub fn try_with_vpv(self, v: f32) -> Result<Self, OutOfRange>

Like Self::with_vpv but returns OutOfRange instead of saturating an unrepresentable value.

Source

pub fn try_set_vpv(&mut self, v: f32) -> Result<(), OutOfRange>

Like Self::set_vpv but returns OutOfRange instead of saturating an unrepresentable value.

Source

pub fn try_with_vmv(self, v: f32) -> Result<Self, OutOfRange>

Like Self::with_vmv but returns OutOfRange instead of saturating an unrepresentable value.

Source

pub fn try_set_vmv(&mut self, v: f32) -> Result<(), OutOfRange>

Like Self::set_vmv but returns OutOfRange instead of saturating an unrepresentable value.

Trait Implementations§

Source§

impl Clone for AlphaChipADebug

Source§

fn clone(&self) -> AlphaChipADebug

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AlphaChipADebug

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AlphaChipADebug

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl From<AlphaChipADebug> for u64

Source§

fn from(v: AlphaChipADebug) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for AlphaChipADebug

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl ToCanFrame for AlphaChipADebug

Source§

const LEN: usize = 8usize

Source§

const ID: Id

Source§

type Repr = u64

Source§

fn to_can_frame<F: Frame>(self) -> F

Source§

impl Copy for AlphaChipADebug

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.