Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
utils.hpp
Go to the documentation of this file.
1#ifndef IV_SRC_COMMS_CANJ1939_UTILS_HPP_
2#define IV_SRC_COMMS_CANJ1939_UTILS_HPP_
3#include <cstdint>
5{
6
12uint32_t extractPgn(uint32_t canId);
13
14uint64_t getChannelValue(const std::vector<std::byte> &data, uint32_t startBit, uint32_t length,
15 iv::eEndianType endianness);
16
17std::optional<iv::types::channelValue> processValue(const iv::eDataType &dataType, const uint64_t channelValue);
18}// namespace iv::comms::canJ1939
19#endif//IV_SRC_COMMS_CANJ1939_UTILS_HPP_
Definition CanJ1939CommunicationController.cpp:13
uint32_t extractPgn(uint32_t canId)
extract the PGN from a can id, used in J1939 and NMEA2k
Definition utils.cpp:11
uint64_t getChannelValue(const std::vector< std::byte > &data, uint32_t startBit, uint32_t length, iv::eEndianType endianness)
Definition utils.cpp:31
std::optional< iv::types::channelValue > processValue(const iv::eDataType &dataType, const uint64_t channelValue)
Definition CanJ1939CommunicationController.cpp:265
eEndianType
Definition enums.hpp:220
eDataType
Definition enums.hpp:207