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
sourceimpl Signal
impl Signal
pub fn name(&self) -> &String
pub fn multiplexer_indicator(&self) -> &MultiplexIndicator
pub fn start_bit(&self) -> &u64
pub fn signal_size(&self) -> &u64
pub fn byte_order(&self) -> &ByteOrder
pub fn value_type(&self) -> &ValueType
pub fn factor(&self) -> &f64
pub fn offset(&self) -> &f64
pub fn min(&self) -> &f64
pub fn max(&self) -> &f64
pub fn unit(&self) -> &String
pub fn receivers(&self) -> &Vec<String>
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more