Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/w/s/ws-28xx-HEAD/CDataStore.py   ws-28xx(Download)
	def getFlag_FLAG_TRANSCEIVER_SETTING_CHANGE(self):	# <4>
		self.logger.debug("")
		#return self.Flags_FLAG_TRANSCEIVER_SETTING_CHANGE
		#std::bitset<5>::at(thisa->Flags, &result, 4u);
		return BitHandling.testBit(self.Flags, 4)
	def getFlag_FLAG_FAST_CURRENT_WEATHER(self):		# <2>
		self.logger.debug("")
		#return self.Flags_FLAG_SERVICE_RUNNING
		#std::bitset<5>::at(thisa->Flags, &result, 2u);
		return BitHandling.testBit(self.Flags, 2)
 
	def getFlag_FLAG_TRANSCEIVER_PRESENT(self):		# <0>
		Flag = BitHandling.testBit(self.Flags, 0)
	def getFlag_FLAG_SERVICE_RUNNING(self):			# <3>
		self.logger.debug("")
		#return self.Flags_FLAG_SERVICE_RUNNING
		return BitHandling.testBit(self.Flags, 3)
 
	def setLastBatteryStatus(self, BatteryStat):
		self.logger.debug("")
		self.logger.info("Battery 3=%d 0=%d 1=%d 2=%d" % (BitHandling.testBit(BatteryStat,3),BitHandling.testBit(BatteryStat,0),BitHandling.testBit(BatteryStat,1),BitHandling.testBit(BatteryStat,2)))
		self.LastStat.LastBatteryStatus = BatteryStat