Struct aws_sdk_iotfleetwise::types::builders::CanSignalBuilder
source · #[non_exhaustive]pub struct CanSignalBuilder { /* private fields */ }
Expand description
A builder for CanSignal
.
Implementations§
source§impl CanSignalBuilder
impl CanSignalBuilder
sourcepub fn message_id(self, input: i32) -> Self
pub fn message_id(self, input: i32) -> Self
The ID of the message.
This field is required.sourcepub fn set_message_id(self, input: Option<i32>) -> Self
pub fn set_message_id(self, input: Option<i32>) -> Self
The ID of the message.
sourcepub fn get_message_id(&self) -> &Option<i32>
pub fn get_message_id(&self) -> &Option<i32>
The ID of the message.
sourcepub fn is_big_endian(self, input: bool) -> Self
pub fn is_big_endian(self, input: bool) -> Self
Whether the byte ordering of a CAN message is big-endian.
This field is required.sourcepub fn set_is_big_endian(self, input: Option<bool>) -> Self
pub fn set_is_big_endian(self, input: Option<bool>) -> Self
Whether the byte ordering of a CAN message is big-endian.
sourcepub fn get_is_big_endian(&self) -> &Option<bool>
pub fn get_is_big_endian(&self) -> &Option<bool>
Whether the byte ordering of a CAN message is big-endian.
sourcepub fn is_signed(self, input: bool) -> Self
pub fn is_signed(self, input: bool) -> Self
Whether the message data is specified as a signed value.
This field is required.sourcepub fn set_is_signed(self, input: Option<bool>) -> Self
pub fn set_is_signed(self, input: Option<bool>) -> Self
Whether the message data is specified as a signed value.
sourcepub fn get_is_signed(&self) -> &Option<bool>
pub fn get_is_signed(&self) -> &Option<bool>
Whether the message data is specified as a signed value.
sourcepub fn start_bit(self, input: i32) -> Self
pub fn start_bit(self, input: i32) -> Self
Indicates the beginning of the CAN signal. This should always be the least significant bit (LSB).
This value might be different from the value in a DBC file. For little endian signals, startBit
is the same value as in the DBC file. For big endian signals in a DBC file, the start bit is the most significant bit (MSB). You will have to calculate the LSB instead and pass it as the startBit
.
sourcepub fn set_start_bit(self, input: Option<i32>) -> Self
pub fn set_start_bit(self, input: Option<i32>) -> Self
Indicates the beginning of the CAN signal. This should always be the least significant bit (LSB).
This value might be different from the value in a DBC file. For little endian signals, startBit
is the same value as in the DBC file. For big endian signals in a DBC file, the start bit is the most significant bit (MSB). You will have to calculate the LSB instead and pass it as the startBit
.
sourcepub fn get_start_bit(&self) -> &Option<i32>
pub fn get_start_bit(&self) -> &Option<i32>
Indicates the beginning of the CAN signal. This should always be the least significant bit (LSB).
This value might be different from the value in a DBC file. For little endian signals, startBit
is the same value as in the DBC file. For big endian signals in a DBC file, the start bit is the most significant bit (MSB). You will have to calculate the LSB instead and pass it as the startBit
.
sourcepub fn offset(self, input: f64) -> Self
pub fn offset(self, input: f64) -> Self
The offset used to calculate the signal value. Combined with factor, the calculation is value = raw_value * factor + offset
.
sourcepub fn set_offset(self, input: Option<f64>) -> Self
pub fn set_offset(self, input: Option<f64>) -> Self
The offset used to calculate the signal value. Combined with factor, the calculation is value = raw_value * factor + offset
.
sourcepub fn get_offset(&self) -> &Option<f64>
pub fn get_offset(&self) -> &Option<f64>
The offset used to calculate the signal value. Combined with factor, the calculation is value = raw_value * factor + offset
.
sourcepub fn factor(self, input: f64) -> Self
pub fn factor(self, input: f64) -> Self
A multiplier used to decode the CAN message.
This field is required.sourcepub fn set_factor(self, input: Option<f64>) -> Self
pub fn set_factor(self, input: Option<f64>) -> Self
A multiplier used to decode the CAN message.
sourcepub fn get_factor(&self) -> &Option<f64>
pub fn get_factor(&self) -> &Option<f64>
A multiplier used to decode the CAN message.
sourcepub fn length(self, input: i32) -> Self
pub fn length(self, input: i32) -> Self
How many bytes of data are in the message.
This field is required.sourcepub fn set_length(self, input: Option<i32>) -> Self
pub fn set_length(self, input: Option<i32>) -> Self
How many bytes of data are in the message.
sourcepub fn get_length(&self) -> &Option<i32>
pub fn get_length(&self) -> &Option<i32>
How many bytes of data are in the message.
Trait Implementations§
source§impl Clone for CanSignalBuilder
impl Clone for CanSignalBuilder
source§fn clone(&self) -> CanSignalBuilder
fn clone(&self) -> CanSignalBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CanSignalBuilder
impl Debug for CanSignalBuilder
source§impl Default for CanSignalBuilder
impl Default for CanSignalBuilder
source§fn default() -> CanSignalBuilder
fn default() -> CanSignalBuilder
source§impl PartialEq for CanSignalBuilder
impl PartialEq for CanSignalBuilder
source§fn eq(&self, other: &CanSignalBuilder) -> bool
fn eq(&self, other: &CanSignalBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.