1#ifndef DAQ_ELODIN_PROTOCOL_HPP
2#define DAQ_ELODIN_PROTOCOL_HPP
26 uint32_t hash = 0x811c9dc5;
31 hash ^=
static_cast<uint8_t
>(c);
38 uint64_t hash = 0xcbf29ce484222325;
43 hash ^=
static_cast<uint8_t
>(c);
44 hash *= 0x00000100000001B3;
51 uint16_t upper =
static_cast<uint16_t
>((hash >> 16) & 0xFFFF);
52 uint16_t lower =
static_cast<uint16_t
>(hash & 0xFFFF);
56inline std::array<uint8_t, 2>
msg_id(std::string_view str) {
58 return {
static_cast<uint8_t
>(hash & 0xff),
static_cast<uint8_t
>((hash >> 8) & 0xff)};
uint16_t fnv1a_hash_16_xor(std::string_view str)
uint64_t fnv1a_hash_64(std::string_view str)
uint64_t component_id(std::string_view str)
std::array< uint8_t, 2 > msg_id(std::string_view str)
uint32_t fnv1a_hash_32(std::string_view str)
Motorized ball valve position: raw ADC counts -> % open.