pub struct Signal {
pub start_bit: u64,
pub size: u64,
pub factor: f64,
pub offset: f64,
pub min: f64,
pub max: f64,
/* private fields */
}Expand description
One or multiple signals are the payload of a CAN frame.
To determine the actual value of a signal the following fn applies:
let fnvalue = |can_signal_value| -> can_signal_value * factor + offset;
Fields§
§start_bit: u64§size: u64§factor: f64§offset: f64§min: f64§max: f64Implementations§
Source§impl Signal
Auto-generated by derive_getters::Getters.
impl Signal
Auto-generated by derive_getters::Getters.
Sourcepub fn multiplexer_indicator(&self) -> &MultiplexIndicator
pub fn multiplexer_indicator(&self) -> &MultiplexIndicator
Get field multiplexer_indicator from instance of Signal.
Sourcepub fn byte_order(&self) -> &ByteOrder
pub fn byte_order(&self) -> &ByteOrder
Get field byte_order from instance of Signal.
Sourcepub fn value_type(&self) -> &ValueType
pub fn value_type(&self) -> &ValueType
Get field value_type from instance of Signal.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Signal
impl<'de> Deserialize<'de> for Signal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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