示例#1
0
 def _set_msgtype_full(self, msgtype):
     self.typeinfo = unpack_H(pack_H_le(msgtype))[0]
示例#2
0
	def _set_channel(self, channel):
		freq = int(channel_to_freq(channel) / 1000000)
		self.flags.set_by_key(CHANNEL_MASK, pack_H_le(freq))
示例#3
0
 def _get_msgtype_full(self):
     return unpack_H(pack_H_le(self.typeinfo))[0]
示例#4
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)
示例#5
0
 def _get_msgtype(self):
     typetmp = self.typeinfo & MASK_MSGTYPE_LE
     return unpack_H(pack_H_le(typetmp))[0]
示例#6
0
 def _set_mvflen_be(self, val):
     self.mvflen = unpack_H(pack_H_le(val))[0]
示例#7
0
 def _get_mvflen_be(self):
     return unpack_H(pack_H_le(self.mvflen))[0]