summaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/signals.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-12-04 17:26:58 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit0ff6413b6dc42849f87ce8caa17a91f44ede2f93 (patch)
tree4ad97df3b971fe8d7d6a3a07f4563ec80d2c03fa /low-can-binding/can/signals.hpp
parent7f905a75de0600ef0c2316db0f3deaa33aabd9e7 (diff)
decoder: rework how to swap frame layout.
This also change the bit_position to retrieve the bit word starting from the left or the right of the frame depending on the endianness of the frame layout. Change-Id: I28658e9d46bd35d8ecabeece317331832229384a Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/can/signals.hpp')
-rwxr-xr-xlow-can-binding/can/signals.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/low-can-binding/can/signals.hpp b/low-can-binding/can/signals.hpp
index 5f143753..bf779981 100755
--- a/low-can-binding/can/signals.hpp
+++ b/low-can-binding/can/signals.hpp
@@ -111,8 +111,6 @@ private:
sign_t sign_; /* !< sign_ - if the data is signed it indicates the encode */
int32_t bit_sign_position_; /*!< bit_sign_position_ - The bit that indicates the sign of the signal in its CAN message*/
std::string unit_; /* !< unit_ - The unit of the data */
- bool bit_position_is_swapped_; /* !<bit_position_is_swapped_- True if the signal's bit position has been
- swapped (refer to converter_t::bit_position_swap()). Default is false.*/
public:
@@ -179,12 +177,10 @@ public:
sign_t get_sign() const;
int32_t get_bit_sign_position() const;
const std::string get_unit() const;
- bool bit_position_is_swapped() const;
void set_parent(std::shared_ptr<message_definition_t> parent);
void set_received(bool r);
void set_last_value(float val);
void set_timestamp(uint64_t timestamp);
void set_bit_position(uint32_t bit_position);
- void bit_position_is_swapped_reverse();
};