Class: Aws::IoTFleetWise::Types::CanSignal
- Inherits:
-
Struct
- Object
- Struct
- Aws::IoTFleetWise::Types::CanSignal
- Defined in:
- gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb
Overview
Information about a single controller area network (CAN) signal and the messages it receives and transmits.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#factor ⇒ Float
A multiplier used to decode the CAN message.
-
#is_big_endian ⇒ Boolean
Whether the byte ordering of a CAN message is big-endian.
-
#is_signed ⇒ Boolean
Whether the message data is specified as a signed value.
-
#length ⇒ Integer
How many bytes of data are in the message.
-
#message_id ⇒ Integer
The ID of the message.
-
#name ⇒ String
The name of the signal.
-
#offset ⇒ Float
The offset used to calculate the signal value.
-
#start_bit ⇒ Integer
Indicates the beginning of the CAN signal.
Instance Attribute Details
#factor ⇒ Float
A multiplier used to decode the CAN message.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |
#is_big_endian ⇒ Boolean
Whether the byte ordering of a CAN message is big-endian.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |
#is_signed ⇒ Boolean
Whether the message data is specified as a signed value.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |
#length ⇒ Integer
How many bytes of data are in the message.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |
#message_id ⇒ Integer
The ID of the message.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
The name of the signal.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |
#offset ⇒ Float
The offset used to calculate the signal value. Combined with factor,
the calculation is value = raw_value * factor + offset
.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |
#start_bit ⇒ Integer
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
.
423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'gems/aws-sdk-iotfleetwise/lib/aws-sdk-iotfleetwise/types.rb', line 423 class CanSignal < Struct.new( :message_id, :is_big_endian, :is_signed, :start_bit, :offset, :factor, :length, :name) SENSITIVE = [] include Aws::Structure end |