pub struct Signal {
pub start_bit: u64,
pub signal_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
§signal_size: u64
§factor: f64
§offset: f64
§min: f64
§max: f64
Implementations§
source§impl Signal
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 signal_size(&self) -> &u64
pub fn signal_size(&self) -> &u64
Get field signal_size
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 PartialEq for Signal
impl PartialEq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
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