def _set_msgtype_full(self, msgtype): self.typeinfo = unpack_H(pack_H_le(msgtype))[0]
def _set_channel(self, channel): freq = int(channel_to_freq(channel) / 1000000) self.flags.set_by_key(CHANNEL_MASK, pack_H_le(freq))
def _get_msgtype_full(self): return unpack_H(pack_H_le(self.typeinfo))[0]
def _set_msgtype(self, msgtype): typetmp = unpack_H(pack_H_le(msgtype))[0] self.typeinfo = (self.typeinfo & ~MASK_MSGTYPE_LE) | (typetmp & MASK_MSGTYPE_LE)
def _get_msgtype(self): typetmp = self.typeinfo & MASK_MSGTYPE_LE return unpack_H(pack_H_le(typetmp))[0]
def _set_mvflen_be(self, val): self.mvflen = unpack_H(pack_H_le(val))[0]
def _get_mvflen_be(self): return unpack_H(pack_H_le(self.mvflen))[0]