ImdGeneralInformation

Struct ImdGeneralInformation 

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

Implementations§

Source§

impl ImdGeneralInformation

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 R_iso_corrected(&self) -> u16

0…40500: corrected isolation value

Units: kΩ

Bits: 0..16

Source

pub const fn with_R_iso_corrected_checked(self, value: u16) -> Result<Self, ()>

0…40500: corrected isolation value

Units: kΩ

Bits: 0..16

Source

pub const fn with_R_iso_corrected(self, value: u16) -> Self

0…40500: corrected isolation value

Units: kΩ

Bits: 0..16

Source

pub const fn set_R_iso_corrected(&mut self, value: u16)

0…40500: corrected isolation value

Units: kΩ

Bits: 0..16

Source

pub const fn set_R_iso_corrected_checked( &mut self, value: u16, ) -> Result<(), ()>

0…40500: corrected isolation value

Units: kΩ

Bits: 0..16

Source

pub const fn R_iso_status(&self) -> u8

ISO Status

0xFC: estimated isolation value during startup 0xFD: first measured isolation value during startup 0xFE: Isolation value in normal operation

Bits: 16..24

Source

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

ISO Status

0xFC: estimated isolation value during startup 0xFD: first measured isolation value during startup 0xFE: Isolation value in normal operation

Bits: 16..24

Source

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

ISO Status

0xFC: estimated isolation value during startup 0xFD: first measured isolation value during startup 0xFE: Isolation value in normal operation

Bits: 16..24

Source

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

ISO Status

0xFC: estimated isolation value during startup 0xFD: first measured isolation value during startup 0xFE: Isolation value in normal operation

Bits: 16..24

Source

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

ISO Status

0xFC: estimated isolation value during startup 0xFD: first measured isolation value during startup 0xFE: Isolation value in normal operation

Bits: 16..24

Source

pub const fn Iso_measurement_counter(&self) -> u8

0…255 Counter will be incremented with each new measured isolation resistance value

Bits: 24..32

Source

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

0…255 Counter will be incremented with each new measured isolation resistance value

Bits: 24..32

Source

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

0…255 Counter will be incremented with each new measured isolation resistance value

Bits: 24..32

Source

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

0…255 Counter will be incremented with each new measured isolation resistance value

Bits: 24..32

Source

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

0…255 Counter will be incremented with each new measured isolation resistance value

Bits: 24..32

Source

pub const fn device_error(&self) -> bool

Device error active

Bits: 32..33

Source

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

Device error active

Bits: 32..33

Source

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

Device error active

Bits: 32..33

Source

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

Device error active

Bits: 32..33

Source

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

Device error active

Bits: 32..33

Source

pub const fn HV_pos_conn_fail(&self) -> bool

HV positive connection failure

Bits: 33..34

Source

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

HV positive connection failure

Bits: 33..34

Source

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

HV positive connection failure

Bits: 33..34

Source

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

HV positive connection failure

Bits: 33..34

Source

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

HV positive connection failure

Bits: 33..34

Source

pub const fn HV_neg_conn_fail(&self) -> bool

HV negative connection failure

Bits: 34..35

Source

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

HV negative connection failure

Bits: 34..35

Source

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

HV negative connection failure

Bits: 34..35

Source

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

HV negative connection failure

Bits: 34..35

Source

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

HV negative connection failure

Bits: 34..35

Source

pub const fn Earth_conn_fail(&self) -> bool

Earth connection failure

Bits: 35..36

Source

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

Earth connection failure

Bits: 35..36

Source

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

Earth connection failure

Bits: 35..36

Source

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

Earth connection failure

Bits: 35..36

Source

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

Earth connection failure

Bits: 35..36

Source

pub const fn Iso_alarm(&self) -> bool

iso value below threshold error

Bits: 36..37

Source

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

iso value below threshold error

Bits: 36..37

Source

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

iso value below threshold error

Bits: 36..37

Source

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

iso value below threshold error

Bits: 36..37

Source

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

iso value below threshold error

Bits: 36..37

Source

pub const fn iso_warning(&self) -> bool

(Iso value below threshold warning)

Bits: 37..38

Source

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

(Iso value below threshold warning)

Bits: 37..38

Source

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

(Iso value below threshold warning)

Bits: 37..38

Source

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

(Iso value below threshold warning)

Bits: 37..38

Source

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

(Iso value below threshold warning)

Bits: 37..38

Source

pub const fn iso_outdated(&self) -> bool

Unbalance value below threshold

Bits: 38..39

Source

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

Unbalance value below threshold

Bits: 38..39

Source

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

Unbalance value below threshold

Bits: 38..39

Source

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

Unbalance value below threshold

Bits: 38..39

Source

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

Unbalance value below threshold

Bits: 38..39

Source

pub const fn Unbalance_alarm(&self) -> bool

Undervoltage alarm

Bits: 39..40

Source

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

Undervoltage alarm

Bits: 39..40

Source

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

Undervoltage alarm

Bits: 39..40

Source

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

Undervoltage alarm

Bits: 39..40

Source

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

Undervoltage alarm

Bits: 39..40

Source

pub const fn Undervoltage_alarm(&self) -> bool

Undervoltage_Alarm

Bits: 40..41

Source

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

Undervoltage_Alarm

Bits: 40..41

Source

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

Undervoltage_Alarm

Bits: 40..41

Source

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

Undervoltage_Alarm

Bits: 40..41

Source

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

Undervoltage_Alarm

Bits: 40..41

Source

pub const fn Unsafe_to_start(&self) -> bool

Earthlift Open

Bits: 41..42

Source

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

Earthlift Open

Bits: 41..42

Source

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

Earthlift Open

Bits: 41..42

Source

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

Earthlift Open

Bits: 41..42

Source

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

Earthlift Open

Bits: 41..42

Trait Implementations§

Source§

impl Clone for ImdGeneralInformation

Source§

fn clone(&self) -> ImdGeneralInformation

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 ImdGeneralInformation

Source§

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

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

impl Default for ImdGeneralInformation

Source§

fn default() -> Self

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

impl From<ImdGeneralInformation> for u64

Source§

fn from(v: ImdGeneralInformation) -> Self

Converts to this type from the input type.
Source§

impl From<u64> for ImdGeneralInformation

Source§

fn from(v: u64) -> Self

Converts to this type from the input type.
Source§

impl ToCanFrame for ImdGeneralInformation

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 ImdGeneralInformation

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.