[][src]Struct can_dbc::Signal

pub struct Signal {
    pub start_bit: u64,
    pub signal_size: u64,
    pub factor: f64,
    pub offset: f64,
    pub min: f64,
    pub max: f64,
    // some fields omitted
}

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: u64signal_size: u64factor: f64offset: f64min: f64max: f64

Implementations

impl Signal[src]

pub fn name(&self) -> &String[src]

pub fn multiplexer_indicator(&self) -> &MultiplexIndicator[src]

pub fn start_bit(&self) -> &u64[src]

pub fn signal_size(&self) -> &u64[src]

pub fn byte_order(&self) -> &ByteOrder[src]

pub fn value_type(&self) -> &ValueType[src]

pub fn factor(&self) -> &f64[src]

pub fn offset(&self) -> &f64[src]

pub fn min(&self) -> &f64[src]

pub fn max(&self) -> &f64[src]

pub fn unit(&self) -> &String[src]

pub fn receivers(&self) -> &Vec<String>[src]

Trait Implementations

impl Clone for Signal[src]

impl Debug for Signal[src]

impl PartialEq<Signal> for Signal[src]

impl StructuralPartialEq for Signal[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.