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.