Struct aws_sdk_iotfleetwise::types::ObdSignal
source · #[non_exhaustive]pub struct ObdSignal {
pub pid_response_length: i32,
pub service_mode: i32,
pub pid: i32,
pub scaling: f64,
pub offset: f64,
pub start_byte: i32,
pub byte_length: i32,
pub bit_right_shift: i32,
pub bit_mask_length: Option<i32>,
}
Expand description
Information about signal messages using the on-board diagnostics (OBD) II protocol in a vehicle.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.pid_response_length: i32
The length of the requested data.
service_mode: i32
The mode of operation (diagnostic service) in a message.
pid: i32
The diagnostic code used to request data from a vehicle for this signal.
scaling: f64
A multiplier used to decode the message.
offset: f64
The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset
.
start_byte: i32
Indicates the beginning of the message.
byte_length: i32
The length of a message.
bit_right_shift: i32
The number of positions to shift bits in the message.
bit_mask_length: Option<i32>
The number of bits to mask in a message.
Implementations§
source§impl ObdSignal
impl ObdSignal
sourcepub fn pid_response_length(&self) -> i32
pub fn pid_response_length(&self) -> i32
The length of the requested data.
sourcepub fn service_mode(&self) -> i32
pub fn service_mode(&self) -> i32
The mode of operation (diagnostic service) in a message.
sourcepub fn pid(&self) -> i32
pub fn pid(&self) -> i32
The diagnostic code used to request data from a vehicle for this signal.
sourcepub fn offset(&self) -> f64
pub fn offset(&self) -> f64
The offset used to calculate the signal value. Combined with scaling, the calculation is value = raw_value * scaling + offset
.
sourcepub fn start_byte(&self) -> i32
pub fn start_byte(&self) -> i32
Indicates the beginning of the message.
sourcepub fn byte_length(&self) -> i32
pub fn byte_length(&self) -> i32
The length of a message.
sourcepub fn bit_right_shift(&self) -> i32
pub fn bit_right_shift(&self) -> i32
The number of positions to shift bits in the message.
sourcepub fn bit_mask_length(&self) -> Option<i32>
pub fn bit_mask_length(&self) -> Option<i32>
The number of bits to mask in a message.
Trait Implementations§
source§impl PartialEq for ObdSignal
impl PartialEq for ObdSignal
impl StructuralPartialEq for ObdSignal
Auto Trait Implementations§
impl Freeze for ObdSignal
impl RefUnwindSafe for ObdSignal
impl Send for ObdSignal
impl Sync for ObdSignal
impl Unpin for ObdSignal
impl UnwindSafe for ObdSignal
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more