19 Peer (uint8_t i1, uint8_t i2, uint8_t i3, uint8_t ch) :
HMID(i1,i2,i3), chan(ch) {}
20 Peer (uint8_t* ptr) :
HMID(*ptr,*(ptr+1),*(ptr+2)), chan(*(ptr+4)) {}
25 Peer& operator = (
const Peer& other) {
30 bool operator == (
const Peer& other)
const {
31 return chan==other.chan && *(
HMID*)
this == (
HMID&)other;
34 static uint8_t size() {
return sizeof(
Peer); }
36 uint8_t channel ()
const {
41 return (chan & 0x01) == 0x00;
45 return (chan & 0x01) == 0x01;
49 DHEX((uint8_t*)
this,
sizeof(
Peer));