21 #ifndef __utl_com_1wire_id_h__ 22 #define __utl_com_1wire_id_h__ 40 :
id_t<uint8_t, 8> {0, 0, 0, 0, 0, 0, 0, 0} { }
61 const uint8_t&
crc8() const noexcept {
return back(); }
73 auto p = std::mismatch (lhs.rbegin(), lhs.rend(), rhs.rbegin());
74 if (p.first == lhs.rend())
return 0;
75 else if (*p.first < *p.second)
return -1;
reference back() noexcept
_1wire_id_t(const _1wire_id_t &id) noexcept
static int compare(const _1wire_id_t &lhs, const _1wire_id_t &rhs) noexcept
Full compare two dev_ids.
reference front() noexcept
uint8_t & crc8() noexcept
A container for device IDs.
uint8_t & family() noexcept
const uint8_t & family() const noexcept
const uint8_t & crc8() const noexcept
STL's core language concepts.
static const _1wire_id_t nullDev_
A standard container for storing IDs as a fixed size sequence of bytes. This type is based on etl::ar...
static constexpr const _1wire_id_t & nullDev()
Return nullDev reference.
iterator begin() noexcept
Implementation detail main forward header.