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

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

src/w/s/ws-28xx-HEAD/CCurrentWeatherData.py   ws-28xx(Download)
	def read(self,buf,pos):
		self.logger.debug("")
		newbuf = [0]
		newbuf[0] = buf[0]
		USBHardware.ReverseByteOrder(newbuf, pos + 0, 2);
		self._WeatherTendency = (newbuf[0][pos + 2] >> 4) & 0xF;
 
		USBHardware.ReverseByteOrder(newbuf, pos + 3, 0x12);
		self._IndoorTemp = USBHardware.ToTemperature(newbuf, pos + 3, 1)
 
			self._IndoorTempMinMax._Max._Time = USBHardware.ToDateTime(newbuf, pos + 15, 0);
 
		USBHardware.ReverseByteOrder(newbuf, pos + 21, 0x12);
		self._OutdoorTemp = USBHardware.ToTemperature(newbuf, pos + 21, 1)
 
			self._OutdoorTempMinMax._Max._Time = USBHardware.ToDateTime(newbuf, pos + 33, 0)
 
		USBHardware.ReverseByteOrder(newbuf, pos + 39, 0x12);
		self._Windchill = USBHardware.ToTemperature(newbuf, pos + 39, 1);
		self._WindchillMinMax._Min._Value = USBHardware.ToTemperature(newbuf, pos + 41, 0);
			self._WindchillMinMax._Max._Time = USBHardware.ToDateTime(newbuf,pos + 51, 0)
 
		USBHardware.ReverseByteOrder(newbuf, pos + 57, 0x12);
		self._Dewpoint = USBHardware.ToTemperature(newbuf, pos + 57, 1);
		self._DewpointMinMax._Min._Value = USBHardware.ToTemperature(newbuf, pos + 59, 0);

src/w/s/ws-28xx-HEAD/CHistoryDataSet.py   ws-28xx(Download)
	def read(self,buf,pos):
		self.logger.debug("")
 
		USBHardware.ReverseByteOrder(buf, pos + 0, 0x12);
		pBuffer = buf;

src/w/s/ws-28xx-HEAD/CCommunicationService.py   ws-28xx(Download)
		#t[0]=[0xcc]*Length[0]
		#CWeatherStationConfig::write(&c, &t[4]);
		USBHardware.ReverseByteOrder(t, 7, 4);
		USBHardware.ReverseByteOrder(t, 11, 5);
		USBHardware.ReverseByteOrder(t, 16, 5);
		USBHardware.ReverseByteOrder(t, 21, 2);
		USBHardware.ReverseByteOrder(t, 23, 2);

src/w/s/ws-28xx-HEAD/CWeatherStationConfig.py   ws-28xx(Download)
 
 
		USBHardware.ReverseByteOrder(nbuf,3+start, 4)
		#buf=nbuf[0]
		#CWeatherStationConfig::readAlertFlags(thisa, buf + 3+start);
		USBHardware.ReverseByteOrder(nbuf, 7+start, 5);
		#  LODWORD(v3));
		#j___RTC_CheckEsp(v4);
		USBHardware.ReverseByteOrder(nbuf, 12+start, 5);
		#v5 = USBHardware.ToTemperature(nbuf, 12+start, 1);
		#CWeatherStationHighLowAlarm::SetLowAlarm(&self._AlarmTempOutdoor, v5);
		#v6 = USBHardware.ToTemperature(nbuf, 14+start, 0);
		#self._AlarmTempOutdoor.baseclass_0.baseclass_0.vfptr[2].__vecDelDtor(
		#  (CWeatherStationAlarm *)&self._AlarmTempOutdoor,
		#  LODWORD(v6));
		USBHardware.ReverseByteOrder(nbuf, 17+start, 2);
		#  (CWeatherStationAlarm *)&self._AlarmHumidityIndoor,
		#  LODWORD(v9));
		USBHardware.ReverseByteOrder(nbuf, 19+start, 2);
		#v11 = USBHardware.ToHumidity(nbuf, 19+start, 1);
		#CWeatherStationHighLowAlarm::SetLowAlarm(&self._AlarmHumidityOutdoor, v11);