55#
66# THIS FILE IS AUTOMATICALLY GENERATED!
77#
8- # Generator: sensirion-driver-generator 0.32 .0
8+ # Generator: sensirion-driver-generator 0.33 .0
99# Product: svm4x
10- # Model-Version: 2.0.0
10+ # Model-Version: 2.0.3
1111#
1212"""
1313The transfer classes specify the data that is transferred between host and sensor. The generated transfer classes
@@ -113,7 +113,10 @@ def pack(self):
113113
114114
115115class ReadMeasuredValuesAsIntegers (Transfer ):
116- """Returns the new measurement results as integers."""
116+ """
117+ Read measurement data as integers.
118+ This command is named get_signals in the datasheet.
119+ """
117120
118121 CMD_ID = 0x3
119122
@@ -125,7 +128,10 @@ def pack(self):
125128
126129
127130class ReadMeasuredRawValues (Transfer ):
128- """Returns the measured raw values."""
131+ """
132+ Read measuremed raw values.
133+ This command is named get_signals_raw in the datasheet.
134+ """
129135
130136 CMD_ID = 0x3
131137
@@ -137,7 +143,10 @@ def pack(self):
137143
138144
139145class GetTemperatureOffsetForRhtMeasurements (Transfer ):
140- """Gets the T-Offset for the temperature compensation of the RHT algorithm."""
146+ """
147+ Gets the T-Offset for the temperature compensation of the RHT algorithm.
148+ This command is named get_temperature_offset in the datasheet.
149+ """
141150
142151 CMD_ID = 0x60
143152
@@ -149,7 +158,10 @@ def pack(self):
149158
150159
151160class GetVocTuningParameters (Transfer ):
152- """Gets the currently set parameters for customizing the VOC algorithm."""
161+ """
162+ Gets the currently set parameters for customizing the VOC algorithm.
163+ This command is named get_voc_parameters in the datasheet.
164+ """
153165
154166 CMD_ID = 0x60
155167
@@ -161,7 +173,10 @@ def pack(self):
161173
162174
163175class GetNoxTuningParameters (Transfer ):
164- """Gets the currently set parameters for customizing the NOx algorithm."""
176+ """
177+ Gets the currently set parameters for customizing the NOx algorithm.
178+ This command is named get_nox_parameters in the datasheet.
179+ """
165180
166181 CMD_ID = 0x60
167182
@@ -173,7 +188,17 @@ def pack(self):
173188
174189
175190class StoreNvData (Transfer ):
176- """Stores all algorithm parameters to the non-volatile memory."""
191+ """
192+ This command stores all parameters previously set with the commands
193+ set_temperature_offset_for_rht_measurements, set_voc_tuning_parameters and
194+ set_nox_tuning_parameters to the non-volatile
195+ memory of SVM4x. These parameters will not be erased
196+ during reset and will be used by the corresponding algorithms
197+ after start-up. To reset the storage to factory settings the
198+ master has to set all parameters to the default values followed
199+ by a subsequent call of the store_nv_data command.
200+ This command is named store_input_parameters in the datasheet.
201+ """
177202
178203 CMD_ID = 0x60
179204
@@ -201,6 +226,7 @@ class SetVocTuningParameters(Transfer):
201226 """
202227 Sets parameters to customize the VOC algorithm. This command is only available
203228 in idle mode.
229+ This command is named set_voc_parameters in the datasheet.
204230 """
205231
206232 CMD_ID = 0x60
@@ -226,6 +252,7 @@ class SetNoxTuningParameters(Transfer):
226252 """
227253 Sets parameters to customize the NOx algorithm. This command is only available
228254 in idle mode.
255+ This command is named set_nox_parameters in the datasheet.
229256 """
230257
231258 CMD_ID = 0x60
@@ -263,22 +290,6 @@ def pack(self):
263290 rx = RxData ('>8B' )
264291
265292
266- class GetNoxState (Transfer ):
267- """
268- Gets the current NOx algorithm state. Retrieved values can be used to set the
269- NOx algorithm state to resume operation after a short interruption, skipping
270- initial learning phase. This command is only available during measurement mode.
271- """
272-
273- CMD_ID = 0x61
274-
275- def pack (self ):
276- return self .tx_data .pack ([0x9 ])
277-
278- tx = TxData (CMD_ID , '>BB' , device_busy_delay = 0.05 , slave_address = None , ignore_ack = False )
279- rx = RxData ('>8B' )
280-
281-
282293class SetVocState (Transfer ):
283294 """
284295 Set previously retrieved VOC algorithm state to resume operation after a short
@@ -295,37 +306,3 @@ def pack(self):
295306 return self .tx_data .pack ([0x88 , self ._state ])
296307
297308 tx = TxData (CMD_ID , '>BB8B' , device_busy_delay = 0.05 , slave_address = None , ignore_ack = False )
298-
299-
300- class SetNoxState (Transfer ):
301- """
302- Set previously retrieved NOx algorithm state to resume operation after a short
303- interruption, skipping initial learning phase. This command is only available in
304- idle mode.
305- """
306-
307- CMD_ID = 0x61
308-
309- def __init__ (self , state ):
310- self ._state = state
311-
312- def pack (self ):
313- return self .tx_data .pack ([0x89 , self ._state ])
314-
315- tx = TxData (CMD_ID , '>BB8B' , device_busy_delay = 0.05 , slave_address = None , ignore_ack = False )
316-
317-
318- class EnterBootloader (Transfer ):
319- """
320- Command to enter into the bootloader mode. The device will reboot into
321- bootloader mode and wait until the new Firmware is received (start update
322- command expected). Even after a power reset, the device returns into bootloader
323- mode. The response frame is sent before the reset.
324- """
325-
326- CMD_ID = 0xf3
327-
328- def pack (self ):
329- return self .tx_data .pack ([])
330-
331- tx = TxData (CMD_ID , '>B' )
0 commit comments